public class HHMMSegmenter
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static WordDictionary |
wordDict |
| Constructor and Description |
|---|
HHMMSegmenter() |
| Modifier and Type | Method and Description |
|---|---|
private SegGraph |
createSegGraph(java.lang.String sentence)
Create the
SegGraph for a sentence. |
private static int[] |
getCharTypes(java.lang.String sentence)
Get the character types for every character in a sentence.
|
java.util.List<SegToken> |
process(java.lang.String sentence)
Return a list of
SegToken representing the best segmentation of a sentence |
private static WordDictionary wordDict
private SegGraph createSegGraph(java.lang.String sentence)
SegGraph for a sentence.sentence - input sentence, without start and end markersSegGraph corresponding to the input sentence.private static int[] getCharTypes(java.lang.String sentence)
sentence - input sentenceUtility.getCharType(char)