C# Класс Egothor.Stemmer.Lift

The Lift class is a data structure that is a variation of a Patricia trie.

Lift's raison d'etre is to implement reduction of the trie via the Lift-Up method., which makes the data structure less liable to overstemming.

Наследование: Reduce
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Lift ( bool changeSkip ) : Lucene.Net.Support

Constructor for the Lift object.

LiftUp ( Row @in, IList nodes ) : void

Reduce the trie using Lift-Up reduction.

The Lift-Up reduction propagates all leaf-values (patch commands), where possible, to higher levels which are closer to the root of the trie.

Optimize ( Egothor.Stemmer.Trie orig ) : Egothor.Stemmer.Trie

Optimize (eliminate rows with no content) the given Trie and return the reduced Trie.

Описание методов

Lift() публичный Метод

Constructor for the Lift object.
public Lift ( bool changeSkip ) : Lucene.Net.Support
changeSkip bool /// when set to true, comparison of two Cells takes /// a skip command into account ///
Результат Lucene.Net.Support

LiftUp() публичный Метод

Reduce the trie using Lift-Up reduction.

The Lift-Up reduction propagates all leaf-values (patch commands), where possible, to higher levels which are closer to the root of the trie.

public LiftUp ( Row @in, IList nodes ) : void
@in Row
nodes IList contains the patch commands
Результат void

Optimize() публичный Метод

Optimize (eliminate rows with no content) the given Trie and return the reduced Trie.
public Optimize ( Egothor.Stemmer.Trie orig ) : Egothor.Stemmer.Trie
orig Egothor.Stemmer.Trie the Trie to optimized
Результат Egothor.Stemmer.Trie