text string similarity evaluation module
Evaluations
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| Evaluate | 1 | 两个字符串之间是通过单词的排布的相似度来比较相似度的 |
| LevenshteinEvaluate | 1 | 计算字符串,这个是直接通过计算字符而非像Evaluations.Evaluate())方法之中计算单词的 |
| TokenOrders | 2 | 以s1为准则,将s2进行比较,返回s2之中的单词在s1之中的排列顺序 |
| IsOrdered | 2 | |
| LevenshteinOrder | 1 | Make text similariy sort in desc order |
| StringSelection | 1 | Get most similar string from the given collection |
| LevenshteinOrder | 1 |
03 Members
两个字符串之间是通过单词的排布的相似度来比较相似度的
| Name | Type | Description |
|---|---|---|
s1 | String | - |
s2 | String | - |
ignoreCase | Boolean | - |
cost | Double | - |
dist | DistResult | - |
A similarity score in value between [0,1]
计算字符串,这个是直接通过计算字符而非像Evaluations.Evaluate()方法之中计算单词的
| Name | Type | Description |
|---|---|---|
s1$ | String | - |
s2$ | String | - |
ignoreCase | Boolean | - |
cost | Double | - |
dist | DistResult | - |
checkChar | Boolean | lambda function pointer for check two char is equals or not? |
String, String, Boolean)以s1为准则,将s2进行比较,返回s2之中的单词在s1之中的排列顺序
| Name | Type | Description |
|---|---|---|
s1 | String | - |
s2 | String | - |
序列之中的-1表示s2之中的单词在s1之中不存在
String(), String(), Boolean, Boolean)查看s2之中的字符串的顺序是否是在s1之中按顺序排序的
| Name | Type | Description |
|---|---|---|
s1$ | String() | - |
s2$ | String() | - |
caseSensitive | Boolean | - |
IEnumerable(Of ``0), String, Func(Of ``0, IEnumerable(Of String)), Boolean, Double, Double, Boolean, IEquals)Make text similariy sort in desc order
this function will removes the item inside the collection which its text similarity is smaller than the cutoff of given query text.
| Name | Description |
|---|---|
T |
| Name | Type | Description |
|---|---|---|
collection | IEnumerable(Of ``0) | - |
query | String | - |
cutoff | Func(Of ``0, IEnumerable(Of String)) | this text similarity cutoff will filter out some content from the result. |
strlen_diff | Boolean | - |
a sort collection result by the text similarity measurement. this result collection may has elements number less than the input collection elements number.
String, IEnumerable(Of String), Double, Boolean, Boolean)Get most similar string from the given collection
| Name | Type | Description |
|---|---|---|
query | String | the text for the similarity measurement |
collection | IEnumerable(Of String) | a given string collection for compares with the given query text string. |
cutoff | Double | the similarity score cutoff for the string filter |
ignoreCase | Boolean | - |
tokenBased | Boolean | - |
String(), IEnumerable(Of String), Boolean, Boolean)String(), String, Boolean)IEnumerable(Of T), String, Func(Of T, IEnumerable(Of String)), Boolean, Double, Double, Boolean, GenericLambda(Of Char))