|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.egothor.stemmer.Reduce
org.egothor.stemmer.Optimizer
public class Optimizer
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.
| Constructor Summary | |
|---|---|
Optimizer()
Constructor for the Optimizer object. |
|
| Method Summary | |
|---|---|
org.egothor.stemmer.Cell |
merge(org.egothor.stemmer.Cell m,
org.egothor.stemmer.Cell e)
Merge the given Cells and return the resulting Cell. |
Row |
merge(Row master,
Row existing)
Merge the given rows and return the resulting Row. |
Trie |
optimize(Trie orig)
Optimize (remove empty rows) from the given Trie and return the resulting Trie. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Optimizer()
| Method Detail |
|---|
public Trie optimize(Trie orig)
optimize in class Reduceorig - the Trie to consolidate
public Row merge(Row master,
Row existing)
master - the master Rowexisting - the existing Row
public org.egothor.stemmer.Cell merge(org.egothor.stemmer.Cell m,
org.egothor.stemmer.Cell e)
m - the master Celle - the existing Cell
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||