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
Models
p(w|C)
as the number of occurrences of the term in the collection, divided by
the total number of tokens + 1
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
computeProbability
(BasicStats stats) Computes the probabilityp(w|C)
according to the language model strategy for the current term.getName()
The name of the collection model strategy.
-
Constructor Details
-
IndriCollectionModel
public IndriCollectionModel()Sole constructor: parameter-free
-
-
Method Details
-
computeProbability
Description copied from interface:LMSimilarity.CollectionModel
Computes the probabilityp(w|C)
according to the language model strategy for the current term.- Specified by:
computeProbability
in interfaceLMSimilarity.CollectionModel
-
getName
Description copied from interface:LMSimilarity.CollectionModel
The name of the collection model strategy.- Specified by:
getName
in interfaceLMSimilarity.CollectionModel
-