Class IndriDirichletSimilarity.IndriCollectionModel
- java.lang.Object
-
- org.apache.lucene.search.similarities.IndriDirichletSimilarity.IndriCollectionModel
-
- All Implemented Interfaces:
LMSimilarity.CollectionModel
- Enclosing class:
- IndriDirichletSimilarity
public static class IndriDirichletSimilarity.IndriCollectionModel extends Object implements LMSimilarity.CollectionModel
Modelsp(w|C)as the number of occurrences of the term in the collection, divided by the total number of tokens+ 1.
-
-
Constructor Summary
Constructors Constructor Description IndriCollectionModel()Sole constructor: parameter-free
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublecomputeProbability(BasicStats stats)Computes the probabilityp(w|C)according to the language model strategy for the current term.StringgetName()The name of the collection model strategy.
-
-
-
Method Detail
-
computeProbability
public double computeProbability(BasicStats stats)
Description copied from interface:LMSimilarity.CollectionModelComputes the probabilityp(w|C)according to the language model strategy for the current term.- Specified by:
computeProbabilityin interfaceLMSimilarity.CollectionModel
-
getName
public String getName()
Description copied from interface:LMSimilarity.CollectionModelThe name of the collection model strategy.- Specified by:
getNamein interfaceLMSimilarity.CollectionModel
-
-