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
파일 보기 프로젝트 열기: apache/lucenenet 1 사용 예제들

공개 메소드들

메소드 설명
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