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
    System.Object
    StempelStemmer
    Namespace: Lucene.Net.Analysis.Stempel
    Assembly: Lucene.Net.Analysis.Stempel.dll
    Syntax
    public class StempelStemmer : object

    Constructors

    | Improve this Doc View Source

    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

    | Improve this Doc View Source

    StempelStemmer(Stream)

    Create a Stemmer using selected stemmer table

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

    stemmer table.

    Methods

    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    Stem(String)

    Stem a word.

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

    input word to be stemmed.

    Returns
    Type Description
    StringBuilder

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

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