public abstract class AbstractSourcedStatisticalTokenDistance extends AbstractSourcedTokenizedStringDistance
| Modifier and Type | Field and Description |
|---|---|
protected int |
collectionSize |
protected Map |
documentFrequency |
protected int |
totalTokenCount |
tokenizer| Constructor and Description |
|---|
AbstractSourcedStatisticalTokenDistance() |
AbstractSourcedStatisticalTokenDistance(SourcedTokenizer tokenizer) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkTrainingHasHappened(StringWrapper s,
StringWrapper t) |
int |
getDocumentFrequency(Token tok) |
void |
train(StringWrapperIterator i0)
Accumulate statistics on how often each token value occurs
|
asBagOfSourcedTokens, prepare, setStringWrapperPooladdExample, doMain, explainScore, explainScore, getDistance, hasNextQuery, nextQuery, prepare, prepare, score, score, setDistanceInstancePoolprotected Map documentFrequency
protected int collectionSize
protected int totalTokenCount
public AbstractSourcedStatisticalTokenDistance(SourcedTokenizer tokenizer)
public AbstractSourcedStatisticalTokenDistance()
public void train(StringWrapperIterator i0)
train in class AbstractSourcedTokenizedStringDistanceprotected void checkTrainingHasHappened(StringWrapper s, StringWrapper t)
public int getDocumentFrequency(Token tok)
Copyright © 2016. All rights reserved.