public class DiceCoefficientStrategy
extends com.wcohen.ss.AbstractStringDistance
| Constructor and Description |
|---|
DiceCoefficientStrategy() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
explainScore(com.wcohen.ss.api.StringWrapper stringWrapper,
com.wcohen.ss.api.StringWrapper stringWrapper2) |
double |
score(com.wcohen.ss.api.StringWrapper first,
com.wcohen.ss.api.StringWrapper second)
Calculates the similarity score of objects, where 0.0 implies absolutely no similarity
and 1.0 implies absolute similarity.
|
public java.lang.String explainScore(com.wcohen.ss.api.StringWrapper stringWrapper,
com.wcohen.ss.api.StringWrapper stringWrapper2)
explainScore in interface com.wcohen.ss.api.StringDistanceexplainScore in class com.wcohen.ss.AbstractStringDistancepublic double score(com.wcohen.ss.api.StringWrapper first,
com.wcohen.ss.api.StringWrapper second)
score in interface com.wcohen.ss.api.StringDistancescore in class com.wcohen.ss.AbstractStringDistancefirst - The first string to compare.second - The second string to compare.