作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2006, Vol. 32 ›› Issue (5): 46-48,67.

• 软件技术与数据库 • 上一篇    下一篇

HTML 文件的文本信息预处理技术

王志琪,王永成   

  1. 上海交通大学计算机科学与工程系,上海 200030
  • 出版日期:2006-03-05 发布日期:2006-03-05

Text Information Preprocessing for HTML

WANG Zhiqi, WANG Yongcheng   

  1. Department of Computer Science and Engineering, Shanghai Jiaotong University, Shanghai 200030
  • Online:2006-03-05 Published:2006-03-05

摘要: 介绍了一种常用的文件类型HTML 文件的文本信息预处理技术。该方法能够解析HTML 文件的组成结构,并从中提取出主体文本以供处理。测试表明该方法能有效地得到大部分HTML 网页的主体部分。文中对HTML 文件的解析不仅可以用于提取出HTML 文件的主体文本,也可以用于得到HTML 文件中其他的元素的内容,具有推广应用价值。

关键词: HTML;文本信息;预处理

Abstract: The paper proposes a text preprocessing method for HTML. The method can parse HTML file, and extract the main part from the HTML file. The experiment shows that the method is feasible to parse HTML files. The method proposed in this paper can be used not only to extract main text of HTML files but also to get other element of HTML files.

Key words: HTML; Text information; Preprocessing