public static class LMSimilarity.DefaultCollectionModel 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 |
---|
LMSimilarity.DefaultCollectionModel()
Sole constructor: parameter-free
|
Modifier and Type | Method and Description |
---|---|
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.
|
public LMSimilarity.DefaultCollectionModel()
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
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.