【泰迪杯】通用论坛正文提取

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

所选题目: C

综合评定成绩:评委评语:

评委签名:

通用论坛正文提取

摘要:

在如今的大数据时代,伴随着互联网和移动互联网的高速发展,在线产生的数据总量不断攀升,其所蕴含的大量信息已成为各行各业的一个重要的数据分析来源。其中论坛类网页数量和涉及的信息越来越多,充分挖掘这类信息对社会舆论和情感分析、企业决策和政策制定等具有重要的现实意义。而各论坛网页风格不一,如何从海量的差异论坛网页中提取有价值的信息是目前互联网数据处理一个急需解决的问题。

本次数据挖掘目标旨在根据论坛网页的特性,提出一种全新的通用论坛正文提取方法。整个过程主要分为5个步骤:

第一步:数据的清洗。附件中有些url存在错误,体现为三类:网页找不到、本帖被删除了以及404的错误码,针对这些网页不做正文提取的处理。

第二步:无用标签的清洗。html网页存在部分非正文的区域,它们大多都是一些js脚本、css样式以及html注释信息,这些标签里面的内容没有价值,事先清除这些标签可以缩小正文区域的搜索范围。

第三步:关键词定位和噪声过滤。关键词指的是时间文本。首先利用BeautifulSoup工具查找出满足时间格式的文本,并将这些时间文本划分为目标时间和正文时间。正文时间出现在主题帖或回复帖的正文内容中,不能帮助定位目标区域,因此将其视为噪声,做相应的过滤处理。将过滤后的时间文本作为目标时间,生成关键词向量。

第四步:目标内容区域定位。首先,以DOM树解析各个论坛网页,分析DOM解析树中包含关键词的节点的路径特征,寻找各路径特征的最大公共子序列,定位所有关键词节点的最近公共父亲节点。其次,在下递归寻找目标区域,有且仅包含一个时间关键词的为目标区域,不包含时间关键词的为非目标区域。

第五步:目标内容提取。目标内容包括作者,主题、正文和发表时间。发表时间选取上述的关键词;主题信息通过定位标签并删除相应的网站信息提取得到;针对作者和正文信息,首先划分链接文本和非链接文本,并以结构化的文本特征向量表示。其次,在链接文本集合中,基于文本结构相似性提取作者信息;在非链接文本集合中,结合文本结构相似性和正文片段空间分布的连续性以及文本密度定位正文信息。</p><p>为了验证上述算法的鲁棒性和通用性,我们设计了三个实验,分别是:对比只含主题帖和同时包含主题帖和回复帖的网页内容提取效果;对比同类网页的内容提取效果;对比不同类型网页的内容提取效果。实验结果表明,上述算法简单高效,内容提取准确率高,且具有很好的通用性。</p><p>关键词:网页正文提取;数据挖掘;BeautifulSoup;DOM树;文本结构相似性;通用性</p><p>Text extraction of general BBS</p><p>Abstract:</p><p>In the current period of big data, with the high-speed development of internet and mobile internet, the amount of data generated online has increased dramatically, which contained a great deal of information that has become an important data resource of most industries. The number of BBS and data rise rapidly, fully excavate this kind of information has important practical significance for public opinion and sentiment analysis, enterprise decision-making and policy-making. However, the style of BBS pages are differ, how to extract valuable information from amounts different BBS web pages is an urgent problem of the Internet data analysis.</p><p>The goal of data mining is to propose a new and general method of content extraction in BBS according to the characteristics of BBS. The whole process involved five steps: First step: data clean. There are some wrong urls in the given data, such as “can’t find the webpage”, “The webpage has been delete” or “404 error”. We do not deal with the data with these replies.</p><p>Second step: useless tags clean. HTML can be divided into object and none-object regions, non-object regions may belong to js script, css style or comment item in which the content is worthless. Thus, we delete these items in advance in order to reduce the search scope of object region.</p><p>Third step: keywords location and noise filtering. Time is considered as the keyword. We firstly find out all text meeting the time format based on BeautifulSoup, and the time is divided into two part of object time and noise time. The noise time generally exit in main text that can't help to locate object region, which should be filtered. After noise filtering, the remaining time is regard as the keyword and generate the keyword vector.</p><p>Fourth step: object region location. Firstly, use DOM tree parse every BBS website, analyze path characteristics of the tree nodes contained keyword in the DOM tree, look for the biggest public subsequence of path characteristics and locate the nearest public father node of all keywords. Secondly, search target areas in the recursive way. The area that contains a keyword is the target area, and the area that do not include the time keyword is not the object region.</p><p>Fifth step, objective content extraction. Object content includes author, title, text and publish time. The publish time choose above keyword vector. We get the title information by positioning</p> </div> </div> </div> </div> </div> <div id="rightcol" class="viewcol"> <div class="coltitle">相关文档</div> <ul class="lista"> <li><a href="/doc/038198960.html" target="_blank">中国通用航空</a></li> <li><a href="/doc/1712884871.html" target="_blank">中国通用航空发展概况</a></li> <li><a href="/doc/1714581044.html" target="_blank">中国通用航空大事记(2001-2008)</a></li> <li><a href="/doc/233317370.html" target="_blank">中国通用航空现状</a></li> <li><a href="/doc/3a15919372.html" target="_blank">中国通用航空行业运营模式与发展趋势预测报告XX2021年</a></li> <li><a href="/doc/4c8860443.html" target="_blank">中国通用航空政策法规</a></li> <li><a href="/doc/5f3087761.html" target="_blank">中国通用航空政策法规</a></li> <li><a href="/doc/5818766879.html" target="_blank">中国10大通用机场</a></li> <li><a href="/doc/7d4351614.html" target="_blank">中国通用航空产业规模的预测研究</a></li> <li><a href="/doc/854915894.html" target="_blank">中国通用航空发展路线图PPT</a></li> </ul> <div class="coltitle">最新文档</div> <ul class="lista"> <li><a href="/doc/071000073.html" target="_blank">饭店包间名字大全</a></li> <li><a href="/doc/0d10001030.html" target="_blank">word无法创建工作文件,请检查临时环境变量</a></li> <li><a href="/doc/0d10001458.html" target="_blank">自行车健身比赛开幕式讲话词</a></li> <li><a href="/doc/0510001469.html" target="_blank">2018乡村医生个人工作总结</a></li> <li><a href="/doc/0e10002558.html" target="_blank">MySQL测试题 SQL</a></li> <li><a href="/doc/0310002568.html" target="_blank">合勤NXC5200</a></li> <li><a href="/doc/0210004833.html" target="_blank">铁路集中箱空箱调度优化建模案例(案例2)</a></li> <li><a href="/doc/021000530.html" target="_blank">微分几何教学大纲-复旦大学数学科学学院</a></li> <li><a href="/doc/031000596.html" target="_blank">人教版九年级数学上册导学案:24.1.1_圆【精品】</a></li> <li><a href="/doc/0c10006773.html" target="_blank">(整容后办护照用)医院整容证明</a></li> <li><a href="/doc/0e10006860.html" target="_blank">危险废物管理台账</a></li> <li><a href="/doc/0310008420.html" target="_blank">2017年终大会会场物料设计方案</a></li> </ul> </div> </div> <script> var sdocid = "ab46c3765627a5e9856a561252d380eb62942305"; var docId = 'ab46c3765627a5e9856a561252d380eb62942305'; var totalPage = 3; const ext = 'pdf'; const pageNum = '3'; </script> <script src="https://assets.360docs.net/pc/js/render.js"></script> <div class="clearfloat"></div> <div id="footer"> <div class="ft_info"> <a href="https://beian.miit.gov.cn">闽ICP备16038512号-3</a> <a href="/tousu.html" target="_blank">侵权投诉</a>  ©2013-2023 360文档中心,www.360docs.net | <a target="_blank" href="/sitemap.html">站点地图</a><br /> 本站资源均为网友上传分享,本站仅负责收集和整理,有任何问题请在对应网页下方投诉通道反馈 </div> <script type="text/javascript">foot()</script> </div> </body> </html>