|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.wcohen.ss.AbstractStringDistance com.wcohen.ss.tokens.TagLinkToken
public class TagLinkToken
Constructor Summary | |
---|---|
TagLinkToken()
TagLinkToken default constructor. |
|
TagLinkToken(double tr)
TagLinkToken constrctur. |
Method Summary | |
---|---|
java.lang.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. |
java.lang.String |
toString()
toString return the name of the string metric. |
Methods inherited from class com.wcohen.ss.AbstractStringDistance |
---|
addExample, doMain, explainScore, getDistance, hasNextQuery, nextQuery, prepare, prepare, prepare, score, setDistanceInstancePool, setStringWrapperPool |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TagLinkToken()
public TagLinkToken(double tr)
tr
- doubleMethod Detail |
---|
public double score(StringWrapper s, StringWrapper t)
score
in interface StringDistance
score
in class AbstractStringDistance
S
- StringWrapperT
- StringWrapper
public java.lang.String explainScore(StringWrapper s, StringWrapper t)
explainScore
in interface StringDistance
explainScore
in class AbstractStringDistance
S
- StringWrapperT
- StringWrapper
public double getMatched()
public double getTr()
public void setTreshold(double treshold)
treshold
- doublepublic java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |