|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.search.similarities.LMSimilarity.DefaultCollectionModel
public static class LMSimilarity.DefaultCollectionModel
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 | |
---|---|
LMSimilarity.DefaultCollectionModel()
Sole constructor: parameter-free |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LMSimilarity.DefaultCollectionModel()
Method Detail |
---|
public float 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |