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.CollectionModel
p(w|C)
according to the language model
strategy for the current term.computeProbability
in interface LMSimilarity.CollectionModel
public String getName()
LMSimilarity.CollectionModel
getName
in interface LMSimilarity.CollectionModel
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.