Package smile.nlp
Class Trie.Node
java.lang.Object
smile.nlp.Trie.Node
The nodes in the trie.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Node
Constructor.- Parameters:
key
- the key.
-
-
Method Details
-
getKey
Returns the key.- Returns:
- the key.
-
getValue
Returns the value.- Returns:
- the value.
-
getChild
Returns the value matching the key sequence.- Parameters:
key
- the key sequence.index
- the index of current element in the key sequence.- Returns:
- the value.
-
getChild
Returns the child with the key.- Parameters:
key
- the key.- Returns:
- the child.
-
addChild
Adds a child.- Parameters:
key
- the key sequence.value
- the value.index
- the index of current element in the key sequence.
-