Show / Hide Table of Contents

    Class Optimizer2

    The Optimizer class is a Trie that will be reduced (have empty rows removed).

    This is the result of allowing a joining of rows when there is no collision between non-null values in the rows. Information loss, resulting in the stemmer not being able to recognize words (as in Optimizer), is curtailed, allowing the stemmer to recognize words for which the original trie was built. Use of this class allows the stemmer to be self-teaching.

    Inheritance
    System.Object
    Reduce
    Optimizer
    Optimizer2
    Inherited Members
    Optimizer.Optimize(Trie)
    Optimizer.Merge(Row, Row)
    Namespace: Egothor.Stemmer
    Assembly: Lucene.Net.Analysis.Stempel.dll
    Syntax
    public class Optimizer2 : Optimizer

    Constructors

    | Improve this Doc View Source

    Optimizer2()

    Constructor for the Optimizer2 object.

    Declaration
    public Optimizer2()

    Methods

    | Improve this Doc View Source

    Merge(Cell, Cell)

    Merge the given Cells and return the resulting Cell.

    Declaration
    public override Cell Merge(Cell m, Cell e)
    Parameters
    Type Name Description
    Cell m

    the master Cell

    Cell e

    the existing Cell

    Returns
    Type Description
    Cell

    the resulting Cell, or null if the operation cannot be realized

    Overrides
    Optimizer.Merge(Cell, Cell)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)