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.
Implements
Inherited Members
Namespace: Lucene.Net.Search.Similarities
Assembly: Lucene.Net.dll
Syntax
public class LMSimilarity.DefaultCollectionModel : LMSimilarity.ICollectionModel
Constructors
DefaultCollectionModel()
Sole constructor: parameter-free
Declaration
public DefaultCollectionModel()
Methods
ComputeProbability(BasicStats)
Computes the probability p(w|C) according to the language model
strategy for the current term.
Declaration
public virtual float ComputeProbability(BasicStats stats)
Parameters
| Type | Name | Description |
|---|---|---|
| BasicStats | stats |
Returns
| Type | Description |
|---|---|
| float |
GetName()
The name of the collection model strategy.
Declaration
public virtual string GetName()
Returns
| Type | Description |
|---|---|
| string |