Class: ViterbiBuilder

ViterbiBuilder


new ViterbiBuilder(dic)

ViterbiBuilder builds word lattice (ViterbiLattice)

Parameters:
Name Type Description
dic DynamicDictionaries

dictionary

Methods


build(sentence_str)

Build word lattice

Parameters:
Name Type Description
sentence_str string

Input text

Returns:

Word lattice

Type
ViterbiLattice