public static class LMSimilarity.DefaultCollectionModel extends Object implements LMSimilarity.CollectionModel
p(w|C) as the number of occurrences of the term in the
collection, divided by the total number of tokens + 1.| Constructor and Description |
|---|
LMSimilarity.DefaultCollectionModel()
Sole constructor: parameter-free
|
| Modifier and Type | Method and Description |
|---|---|
float |
computeProbability(BasicStats stats)
Computes the probability
p(w|C) according to the language model
strategy for the current term. |
String |
getName()
The name of the collection model strategy.
|
public LMSimilarity.DefaultCollectionModel()
public float computeProbability(BasicStats stats)
LMSimilarity.CollectionModelp(w|C) according to the language model
strategy for the current term.computeProbability in interface LMSimilarity.CollectionModelpublic String getName()
LMSimilarity.CollectionModelgetName in interface LMSimilarity.CollectionModelCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.