public class TextSimilarity extends Object
Constructor and Description |
---|
TextSimilarity() |
Modifier and Type | Method and Description |
---|---|
static double |
similar(String strA,
String strB)
计算相似度,两个都是空串相似度为1,被认为是相同的串
|
static String |
similar(String strA,
String strB,
int scale)
计算相似度百分比
|
Copyright © 2021. All rights reserved.