public class TrieStructure extends Object
Constructor and Description |
---|
TrieStructure() |
Modifier and Type | Method and Description |
---|---|
void |
addWord(String aWord)
Adds a word to the tree.
|
static TrieStructure |
createForDict(Dictionary aDict)
Creates a Trie object for a SimpleDictionary
|
static TrieStructure |
createForDictReverse(Dictionary aDict)
Creates a Trie object for a SimpleDictionary with all words reversed
|
KeyValueNode<String,Integer> |
findWord(String aWord)
Finds a node with a given string.
|
Integer |
getSuccessors(String aWord)
Returns the number of successor for a node.
|
public void addWord(String aWord)
aWord
- a word.public KeyValueNode<String,Integer> findWord(String aWord)
aWord
- a word.null
.public Integer getSuccessors(String aWord)
aWord
- a word.public static TrieStructure createForDict(Dictionary aDict)
aDict
- a dictionary.public static TrieStructure createForDictReverse(Dictionary aDict)
aDict
- a dictionary.Copyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.