wordAnalysis php分词 计算两个文本的相似度 1、分词 phpanalysis.class.php 2、获取文本相似度(余弦定理) textSimilarity.class.php 计算相似度公式 3、使用参考 index.php 注意以上文件的引用路径(根据实际项目修改)