基于XPath的新闻信息抽取系统设计与实现
2015-04-29阮娟
阮娟
摘 要:随着互联网技术的迅猛发展,因特网成为目前新闻信息最丰富最主要的来源。本文在分析新闻网页的基础上,并分析了目前现有的信息抽取技术和XML技术,提出了一个基于XML技术的Web新闻抽取系统。本文主要是充分运用XML中的XPath技术在数据定位方面的优势,并提出一种基于DOM树的XPath生成算法,使用XSLT语言用于描述抽取规则,并使用路径表达式XPath定位待抽取的信息点。
关键词:数1据挖掘;信息抽取;新闻抽取系统;XPath
中图分类号:TP391.3 文献标识号:A 文章编号:2095-2163(2015-)02-
Design and Implementation of News and Information Extraction System based on XPath
RUAN Juan
(Taizhou Vocational & Technical College, Taizhou Zhejiang 318000, China)
Abstract: With the rapid development of Internet technology, the Internet is now the main source of the most abundant information. On the basis of the analysis of news Web pages, and analysis of the current existing information extraction technology and XML technology,the paper presents a Web news extraction system based on XML technology. This paper mainly uses the XPath XML technology in data location advantages, and puts forward a DOM tree based XPath generation algorithm, using XSLT language to describe the selection rules, and the path expression XPath to extract information point.
Keywords: Data Mining;Information Extraction;News and Information Extraction System; XPath
0 引 言
隨着时代发展,高校信息化建设成为影响学校发展的重要因素。目前高校主要活动由党委宣传部集中报道并及时发布门户网站,其他信息则由宣传部下属各二级单位信息员提供,或是宣传部采集二级网站新闻来进行获取。但网站在为学校教职工提供大量丰富信息的同时,却也为如何获得更加高效实用信息带来了巨大挑战,具体来说主要包括两个方面。一方面,随着学校的发展,各系部处室工作内容的增加,Web信息呈现爆炸式地增长,这就需要耗费信息采集员大量的时间、精力去搜集信息,但该种方式仍然还是会出现信息遗漏或新闻失去时效性等众多问题。另一方面,虽然二级网站存在本站搜索引擎,但是并没能给信息获取带来便捷。针对这一状况,并且随着对于信息获取要求的提高,用户已然趋向于更加精细、便捷的信息抽取方式。
1 目前国内外信息抽取系统
Web信息抽取的主要信息源就是互联网。……
