Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class StempelStemmer

    Stemmer class is a convenient facade for other stemmer-related classes. The core stemming algorithm and its implementation is taken verbatim from the Egothor project ( www.egothor.org ).

    Even though the stemmer tables supplied in the distribution package are built for Polish language, there is nothing language-specific here.

    Inheritance
    object
    StempelStemmer
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Analysis.Stempel
    Assembly: Lucene.Net.Analysis.Stempel.dll
    Syntax
    public class StempelStemmer

    Constructors

    StempelStemmer(Trie)

    Create a Stemmer using pre-loaded stemmer table

    Declaration
    public StempelStemmer(Trie stemmer)
    Parameters
    Type Name Description
    Trie stemmer

    pre-loaded stemmer table

    StempelStemmer(Stream)

    Create a Stemmer using selected stemmer table

    Declaration
    public StempelStemmer(Stream stemmerTable)
    Parameters
    Type Name Description
    Stream stemmerTable

    stemmer table.

    Methods

    Load(Stream)

    Load a stemmer table from an inputstream.

    Declaration
    public static Trie Load(Stream stemmerTable)
    Parameters
    Type Name Description
    Stream stemmerTable
    Returns
    Type Description
    Trie

    Stem(string)

    Stem a word.

    Declaration
    public StringBuilder Stem(string word)
    Parameters
    Type Name Description
    string word

    input word to be stemmed.

    Returns
    Type Description
    StringBuilder

    stemmed word, or null if the stem could not be generated.

    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.