鲜翠琼 秦学 朱道恒 操淑敏



摘 要:包含文字和图片的文档作为信息的一种载体,能够极大地丰富信息的表现形式。针对传统计算图文相似度的算法效率不高的问题,提出一种图文组合相似度算法。将Jaccard相似系数引入余弦相似度,通过加权计算两文本的相似度,然后用感知哈希算法计算文档中图片相似度并找出最大值,再计算单个文档中所有图片相似度均值,与文本相似度加权求得文档的图文相似度。最后通过一个文档相似度查重系统验证了该算法能准确高效地完成文档之间相似度的量化,且优化后的相似度算法能够极大提高该系统的运行效率。
关键词:余弦相似度算法;Jaccard相似系数;感知哈希算法;文本相似度
中圖分类号:TP391.1 文献标识码:A
Abstract: As a carrier of information, documents containing both text and graphics can greatly enrich information. In view of the inconsistency of traditional algorithms for calculating similarity between graphics and text, this paper proposes a similarity algorithm for combining graphics and text. Jaccard similarity coefficient is introduced into cosine similarity, and the similarity of two kinds of text are calculated by weighting. Then, the graphic similarity in the document is calculated through PHash algorithm and the maximum value is derived. After that, the average similarity of all the graphics is calculated in a single document, and weighted with the text similarity, thus to obtain the similarity of both graphics and text of document. Finally, a document similarity check system is used to verify that the algorithm accurately and efficiently quantifies the similarity between documents, and the optimized similarity algorithm greatly improves the efficiency of the system.
Keywords: cosine similarity algorithm; Jaccard similarity coefficient; PHash similarity; text similarity
1 引言(Introduction)
文本相似度分析是中文信息处理领域的一种基础技术,凡是在处理中文信息处理的领域都有其身影。机器翻译领域,文本相似度可作为翻译准确度的衡量原则[1];搜索引擎领域,文本相似度算法是其核心;自动问答领域,文本相似度更是匹配回答与提问的重要技术[2];在论文查重领域,文本相似度研究更是系统检测学术不端行为的唯一手段;在文本聚类领域,文本相似度也是聚类表中的重要参考[3];在新闻推荐、关联词推荐等智能精准推荐领域,文本相似度研究更是其基础工作[4]。而在计算机视觉领域,图像相似度度量是一个基础问题,它在图像分类、图像检索、图像匹配、模式识别和目标检测等多方面都有十分广泛的应用。……