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
.
Inheritance
System.Object
LMSimilarity.DefaultCollectionModel
Implements
Namespace: Lucene.Net.Search.Similarities
Assembly: Lucene.Net.dll
Syntax
public class DefaultCollectionModel : object, LMSimilarity.ICollectionModel
Constructors
| Improve this Doc View SourceDefaultCollectionModel()
Sole constructor: parameter-free
Declaration
public DefaultCollectionModel()
Methods
| Improve this Doc View SourceComputeProbability(BasicStats)
Declaration
public virtual float ComputeProbability(BasicStats stats)
Parameters
Type | Name | Description |
---|---|---|
BasicStats | stats |
Returns
Type | Description |
---|---|
System.Single |
GetName()
Declaration
public virtual string GetName()
Returns
Type | Description |
---|---|
System.String |