public static class IndriDirichletSimilarity.IndriCollectionModel 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 |
|---|
IndriCollectionModel()
Sole constructor: parameter-free
|
| Modifier and Type | Method and Description |
|---|---|
double |
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 IndriCollectionModel()
public double 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-2021 Apache Software Foundation. All Rights Reserved.