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
    System.Object
    LMSimilarity.DefaultCollectionModel
    Implements
    LMSimilarity.ICollectionModel
    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 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 © 2021 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.