Package org.egothor.stemmer
Class Optimizer
java.lang.Object
org.egothor.stemmer.Reduce
org.egothor.stemmer.Optimizer
- Direct Known Subclasses:
Optimizer2
The Optimizer class is a Trie that will be reduced (have empty rows removed).
The reduction will be made by joining two rows where the first is a subset of the second.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.egothor.stemmer.Reduce
Reduce.Remap
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMerge the given Cells and return the resulting Cell.Merge the given rows and return the resulting Row.Optimize (remove empty rows) from the given Trie and return the resulting Trie.Methods inherited from class org.egothor.stemmer.Reduce
removeGaps
-
Constructor Details
-
Optimizer
public Optimizer()Constructor for the Optimizer object.
-
-
Method Details
-
optimize
Optimize (remove empty rows) from the given Trie and return the resulting Trie. -
merge
Merge the given rows and return the resulting Row.- Parameters:
master
- the master Rowexisting
- the existing Row- Returns:
- the resulting Row, or
null
if the operation cannot be realized
-
merge
Merge the given Cells and return the resulting Cell.- Parameters:
m
- the master Celle
- the existing Cell- Returns:
- the resulting Cell, or
null
if the operation cannot be realized
-