public class ViterbiBuilder
extends java.lang.Object
Constructor and Description |
---|
ViterbiBuilder(DoubleArrayTrie trie,
TokenInfoDictionary dictionary,
UnknownDictionary unknownDictionary,
UserDictionary userDictionary,
TokenizerBase.Mode mode)
Constructor
|
Modifier and Type | Method and Description |
---|---|
ViterbiLattice |
build(java.lang.String text)
Build lattice from input text
|
public ViterbiBuilder(DoubleArrayTrie trie, TokenInfoDictionary dictionary, UnknownDictionary unknownDictionary, UserDictionary userDictionary, TokenizerBase.Mode mode)
trie
- trie with surface formsdictionary
- token info dictionaryunknownDictionary
- unknown word dictionaryuserDictionary
- user dictionarymode
- tokenization mode
public ViterbiLattice build(java.lang.String text)
text
- source text for the lattice