java-string-similarity:一个Java库,实现了几种计算字符串之间相似度的算法

上传者: 42134168 | 上传时间: 2022-09-16 16:54:24 | 文件大小: 86KB | 文件类型: ZIP
,用于计算两个字符串之间的归一化距离或相似度分数。 0.0 分表示两个字符串绝对不相似,1.0 表示绝对相似(或相等)。 介于两者之间的任何内容都表示两个字符串的相似程度。 例子 在这个简单的例子中,我们想要计算McDonalds和MacMahons之间的相似度得分。 我们正在选择算法。 SimilarityStrategy strategy = new JaroWinklerStrategy (); String target = " McDonalds " ; String source = " MacMahons " ; StringSimilarityService service = new StringSimilarityServiceImpl (strategy); double score = service . score(source, target); // Sc

文件下载

资源详情

[{"title":"( 29 个子文件 86KB ) java-string-similarity:一个Java库,实现了几种计算字符串之间相似度的算法","children":[{"title":"java-string-similarity-master","children":[{"title":".gitignore <span style='color:#111;'> 449B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"main","children":[{"title":"java","children":[{"title":"net","children":[{"title":"ricecode","children":[{"title":"similarity","children":[{"title":"DiceCoefficientStrategy.java <span style='color:#111;'> 2.80KB </span>","children":null,"spread":false},{"title":"DescendingSimilarityScoreComparator.java <span style='color:#111;'> 1.91KB </span>","children":null,"spread":false},{"title":"JaroWinklerStrategy.java <span style='color:#111;'> 3.97KB </span>","children":null,"spread":false},{"title":"StringSimilarityServiceImpl.java <span style='color:#111;'> 3.97KB </span>","children":null,"spread":false},{"title":"JaroStrategy.java <span style='color:#111;'> 5.21KB </span>","children":null,"spread":false},{"title":"SimilarityStrategy.java <span style='color:#111;'> 1.65KB </span>","children":null,"spread":false},{"title":"LevenshteinDistanceStrategy.java <span style='color:#111;'> 1.98KB </span>","children":null,"spread":false},{"title":"StringSimilarityService.java <span style='color:#111;'> 2.93KB </span>","children":null,"spread":false},{"title":"AscendingSimilarityScoreComparator.java <span style='color:#111;'> 1.90KB </span>","children":null,"spread":false},{"title":"SimilarityScore.java <span style='color:#111;'> 2.42KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"test","children":[{"title":"java","children":[{"title":"net","children":[{"title":"ricecode","children":[{"title":"similarity","children":[{"title":"JaroStrategyTest.java <span style='color:#111;'> 2.66KB </span>","children":null,"spread":false},{"title":"AscendingComparatorTest.java <span style='color:#111;'> 2.28KB </span>","children":null,"spread":false},{"title":"StringSimilarityServiceImplTest.java <span style='color:#111;'> 5.39KB </span>","children":null,"spread":false},{"title":"SimilarityScoreTest.java <span style='color:#111;'> 1.52KB </span>","children":null,"spread":false},{"title":"DescendingComparatorTest.java <span style='color:#111;'> 2.29KB </span>","children":null,"spread":false},{"title":"DiceCoefficientStrategyTest.java <span style='color:#111;'> 2.73KB </span>","children":null,"spread":false},{"title":"LevenshteinDistanceStrategyTest.java <span style='color:#111;'> 2.53KB </span>","children":null,"spread":false},{"title":"JaroWinklerStrategyTest.java <span style='color:#111;'> 2.68KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".travis.yml <span style='color:#111;'> 70B </span>","children":null,"spread":false},{"title":"gradlew <span style='color:#111;'> 5.17KB </span>","children":null,"spread":false},{"title":"LICENSE.txt <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":".github","children":[{"title":"workflows","children":[{"title":"gradle.yml <span style='color:#111;'> 608B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"pom.xml <span style='color:#111;'> 4.50KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 2.07KB </span>","children":null,"spread":false},{"title":"gradlew.bat <span style='color:#111;'> 2.21KB </span>","children":null,"spread":false},{"title":"gradle","children":[{"title":"wrapper","children":[{"title":"gradle-wrapper.properties <span style='color:#111;'> 203B </span>","children":null,"spread":false},{"title":"gradle-wrapper.jar <span style='color:#111;'> 54.86KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明