Package org.egothor.stemmer
Class Lift
- java.lang.Object
- 
- org.egothor.stemmer.Reduce
- 
- org.egothor.stemmer.Lift
 
 
- 
 public class Lift extends Reduce 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. 
- 
- 
Constructor SummaryConstructors Constructor Description Lift(boolean changeSkip)Constructor for the Lift object.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidliftUp(Row in, List<Row> nodes)Reduce the trie using Lift-Up reduction.Trieoptimize(Trie orig)Optimize (eliminate rows with no content) the given Trie and return the reduced Trie.
 
- 
- 
- 
Method Detail- 
optimizepublic Trie optimize(Trie orig) Optimize (eliminate rows with no content) the given Trie and return the reduced Trie.
 - 
liftUppublic void liftUp(Row in, List<Row> nodes) 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. - Parameters:
- in- the Row to consider when optimizing
- nodes- contains the patch commands
 
 
- 
 
-