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
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Search.Similarities
Assembly: Lucene.Net.dll
Syntax
public class DefaultCollectionModel : 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 |