public class SoftTokenFelligiSunter extends AbstractStatisticalTokenDistance
collectionSize, documentFrequency, totalTokenCounttokenizer| Constructor and Description |
|---|
SoftTokenFelligiSunter() |
SoftTokenFelligiSunter(Tokenizer tokenizer,
StringDistance tokenDistance,
double tokenMatchThreshold,
double mismatchFactor) |
| Modifier and Type | Method and Description |
|---|---|
String |
explainScore(StringWrapper s,
StringWrapper t)
Explain how the distance was computed.
|
static void |
main(String[] argv) |
StringWrapper |
prepare(String s)
Preprocess a string by finding tokens
|
double |
score(StringWrapper s,
StringWrapper t)
This method needs to be implemented by subclasses.
|
void |
setMismatchFactor(double d) |
void |
setMismatchFactor(Double d) |
void |
setTokenMatchThreshold(double d) |
void |
setTokenMatchThreshold(Double d) |
String |
toString() |
checkTrainingHasHappened, getDocumentFrequency, tokenIterator, trainasBagOfTokens, prepare, setStringWrapperPooladdExample, doMain, explainScore, getDistance, hasNextQuery, nextQuery, prepare, score, setDistanceInstancePoolpublic SoftTokenFelligiSunter(Tokenizer tokenizer, StringDistance tokenDistance, double tokenMatchThreshold, double mismatchFactor)
public SoftTokenFelligiSunter()
public void setMismatchFactor(double d)
public void setMismatchFactor(Double d)
public void setTokenMatchThreshold(double d)
public void setTokenMatchThreshold(Double d)
public double score(StringWrapper s, StringWrapper t)
AbstractStringDistancescore in interface StringDistancescore in class AbstractStringDistancepublic StringWrapper prepare(String s)
prepare in interface StringDistanceprepare in class AbstractStringDistancepublic String explainScore(StringWrapper s, StringWrapper t)
explainScore in interface StringDistanceexplainScore in class AbstractStringDistancepublic static void main(String[] argv)
Copyright © 2016. All rights reserved.