|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.egothor.stemmer.Trie
org.egothor.stemmer.MultiTrie
org.egothor.stemmer.MultiTrie2
The MultiTrie is a Trie of Tries. It stores words and their associated patch commands. The MultiTrie handles patch commmands broken into their constituent parts, as a MultiTrie does, but the commands are delimited by the skip command.
| Constructor Summary | |
MultiTrie2(boolean forward)
Constructor for the MultiTrie2 object |
|
MultiTrie2(java.io.DataInput is)
Constructor for the MultiTrie object. |
|
| Method Summary | |
void |
add(java.lang.String key,
java.lang.String cmd)
Add an element to this structure consisting of the given key and patch command. |
java.lang.String[] |
decompose(java.lang.String cmd)
Break the given patch command into its constituent pieces. |
java.lang.String |
getFully(java.lang.String key)
Return the element that is stored in a cell associated with the given key. |
java.lang.String |
getLastOnPath(java.lang.String key)
Return the element that is stored as last on a path belonging to the given key. |
Trie |
reduce(Reduce by)
Remove empty rows from the given Trie and return the newly reduced Trie. |
void |
store(java.io.DataOutput os)
Write this data structure to the given output stream. |
| Methods inherited from class org.egothor.stemmer.MultiTrie |
printInfo |
| Methods inherited from class org.egothor.stemmer.Trie |
getAll, getCells, getCellsPnt, getCellsVal |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MultiTrie2(java.io.DataInput is)
throws java.io.IOException
is - the input stream
java.io.IOException - if an I/O error occurspublic MultiTrie2(boolean forward)
forward - set to true if the elements should be read
left to right| Method Detail |
public java.lang.String getFully(java.lang.String key)
getFully in class MultiTriekey - the key to the cell holding the desired element
public java.lang.String getLastOnPath(java.lang.String key)
getLastOnPath in class MultiTriekey - the key associated with the desired element
public void store(java.io.DataOutput os)
throws java.io.IOException
store in class MultiTrieos - the output stream
java.io.IOException - if an I/O error occurs
public void add(java.lang.String key,
java.lang.String cmd)
add in class MultiTriekey - the keycmd - the patch commandpublic java.lang.String[] decompose(java.lang.String cmd)
cmd - the patch command
public Trie reduce(Reduce by)
reduce in class MultiTrieby - the Trie to reduce
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||