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
    System.Object
    LMSimilarity.DefaultCollectionModel
    Implements
    LMSimilarity.ICollectionModel
    Namespace: Lucene.Net.Search.Similarities
    Assembly: Lucene.Net.dll
    Syntax
    public class DefaultCollectionModel : object, LMSimilarity.ICollectionModel

    Constructors

    | Improve this Doc View Source

    DefaultCollectionModel()

    Sole constructor: parameter-free

    Declaration
    public DefaultCollectionModel()

    Methods

    | Improve this Doc View Source

    ComputeProbability(BasicStats)

    Declaration
    public virtual float ComputeProbability(BasicStats stats)
    Parameters
    Type Name Description
    BasicStats stats
    Returns
    Type Description
    System.Single
    | Improve this Doc View Source

    GetName()

    Declaration
    public virtual string GetName()
    Returns
    Type Description
    System.String

    Implements

    LMSimilarity.ICollectionModel
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)