Package opennlp.tools.tokenize.lattice
Class UnigramSegmenter.WordTrieBuilder
java.lang.Object
opennlp.tools.tokenize.lattice.UnigramSegmenter.WordTrieBuilder
- Enclosing class:
UnigramSegmenter
One mutable trie node during construction, copied into a
UnigramSegmenter.WordTrie.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final recordOne pending post-order traversal step. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate UnigramSegmenter.WordTrieprivate final Map<Character, UnigramSegmenter.WordTrieBuilder> private double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate UnigramSegmenter.WordTriebuild()Copies the mutable tree without consuming the thread stack.
-
Field Details
-
children
-
logProbability
private double logProbability -
built
-
-
Constructor Details
-
WordTrieBuilder
private WordTrieBuilder()
-
-
Method Details
-
build
Copies the mutable tree without consuming the thread stack. Each mutable node uses a step before child visits and a step afterward, preserving post-order construction for surfaces of any supported length.
-