Fork me on GitHub
  • API

    Show / Hide Table of Contents

    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
    object
    LMSimilarity.DefaultCollectionModel
    Implements
    LMSimilarity.ICollectionModel
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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

    Implements

    LMSimilarity.ICollectionModel
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.