2015-10-05 173 views
-2

我想仅从文本中提取专业摘要.. 任何人都可以帮助我开始吗?从文本文件中提取内容

Objective: 
To be associated with a dynamic organization that gives me ample opportunity to apply my skills to excel in my work field. Always excited to learn and work in new technologies. 

Professional Summary: 

Having around 3 years of IT experience in various technologies like Java, JSP, Servlets, JDBC, Struts, Hibernate, spring. 
Expertise in implementing J2EE technologies (JSP , Servlets , JDBC) 
Hands on Experience in Banking and Finance Domain. 
Hands on Experience in Struts1 and 2 Framework. 
Hands on Experience in Hibernate Framework. 
Hands on Experience in Spring Framework. 
Hands on Experience in J2EE Design Patterns. 
Having Java programming skills with JDK 1.6 
Having Good knowledge in EJB. 
Having Good Knowledge in OOPS Concept. 
Having knowledge of Adobe Live Cycle Tool. 

Work Experience: 

DurationDesignationOrganizationJune 12 to Feb 13Software EngineerPeocit Technologies, MumbaiJune 10 to June 12Software EngineerSDSoft Solution pvt ltd, Bangalore 

Technical Skills: 

Operating SystemWindows XP, Windows 7LanguagesJavaApplication/Web ServersJBoss, Apache Tomcat7.J2EE Technologies JDBC, Servlets, JSP and JSTL.Web ProgrammingCSS, HTML, JQueryRDBMS MySQL, OracleFramework Struts, Hibernat SpringIDEEclipse,Eclipse.ToolsLog4j, SVN, ANT 



Education: 

B.Tech (Computer Science) form WBUT in JUNE 2010 with 80%. 
+0

起飞看正则表达式https://docs.python.org/2/library/re.html – Toumash

+0

@Toumash这不是最好的方法。 – jonrsharpe

回答

1

如果“工作经验:”总是紧跟着专业的总结,你可以用两个章节标题来分隔出不需要的区域:

def get_text_between(s, a, b): 
    return s.partition(a)[2].rpartition(b)[0] 

with open("input.txt") as f: 
    data = f.read() 

print get_text_between(data, "Professional Summary:", "Work Experience:") 

结果:

Having around 3 years of IT experience in various technologies like Java, JSP, Servlets, JDBC, Struts, Hibernate, spring. 
Expertise in implementing J2EE technologies (JSP , Servlets , JDBC) 
Hands on Experience in Banking and Finance Domain. 
Hands on Experience in Struts1 and 2 Framework. 
Hands on Experience in Hibernate Framework. 
Hands on Experience in Spring Framework. 
Hands on Experience in J2EE Design Patterns. 
Having Java programming skills with JDK 1.6 
Having Good knowledge in EJB. 
Having Good Knowledge in OOPS Concept. 
Having knowledge of Adobe Live Cycle Tool. 
+0

谢谢!!凯文有效,但如果总结没有遵循工作经验呢?是否有任何逻辑来提取'titile' – SAKETH