public class TagLinkToken extends AbstractStringDistance
| Constructor and Description |
|---|
TagLinkToken()
TagLinkToken default constructor.
|
TagLinkToken(double tr)
TagLinkToken constrctur.
|
| Modifier and Type | Method and Description |
|---|---|
String |
explainScore(StringWrapper s,
StringWrapper t)
explainScore returns an explanation of how the string distance was
computed.
|
double |
getMatched()
getMatched return the number of matched character.
|
double |
getTr()
getTr return the contant value Gamma.
|
double |
score(StringWrapper s,
StringWrapper t)
score return the a strng distance value between 0 and 1 of a pair
of tokens.
|
void |
setTreshold(double treshold)
setTreshold set a new value to the constant Gamma.
|
String |
toString()
toString return the name of the string metric.
|
addExample, doMain, explainScore, getDistance, hasNextQuery, nextQuery, prepare, prepare, prepare, score, setDistanceInstancePool, setStringWrapperPoolpublic TagLinkToken()
public TagLinkToken(double tr)
tr - doublepublic double score(StringWrapper s, StringWrapper t)
score in interface StringDistancescore in class AbstractStringDistanceS - StringWrapperT - StringWrapperpublic String explainScore(StringWrapper s, StringWrapper t)
explainScore in interface StringDistanceexplainScore in class AbstractStringDistanceS - StringWrapperT - StringWrapperpublic double getMatched()
public double getTr()
public void setTreshold(double treshold)
treshold - doubleCopyright © 2016. All rights reserved.