this.viterbiSearcher = new ViterbiSearcher(this.viterbiBuilder, mode, dictionaries.getCosts(), dictionaries.getUnknownDictionary());
this.formatter = new ViterbiFormatter(dictionaries.getCosts());
}
public String debugTokenize(String text) {
ViterbiLattice lattice = this.viterbiBuilder.build(text);
List<ViterbiNode> bestPath = this.viterbiSearcher.search(lattice);
return this.formatter.format(lattice, bestPath);
}