public class HMM extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
END |
protected static String |
START |
static int |
WORD_INDEX |
| Constructor and Description |
|---|
HMM() |
| Modifier and Type | Method and Description |
|---|---|
static void |
eval(HMMModel model,
String testFile,
String delimiter,
int wordColIndex,
int tagColIndex) |
static HMMModel |
loadModel(String modelPath) |
static void |
main(String[] args) |
static void |
normalizeEmission(HMMModel model) |
static void |
normalizeTrans(HMMModel model) |
static List<org.maochen.nlp.ml.SequenceTuple> |
readTrainFile(String filename,
String delimiter,
int wordColIndex,
int tagColIndex) |
static void |
saveModel(String modelPath,
HMMModel model) |
static HMMModel |
train(List<org.maochen.nlp.ml.SequenceTuple> data) |
static List<String> |
viterbi(HMMModel model,
String[] words) |
public static final int WORD_INDEX
protected static final String START
protected static final String END
public static List<org.maochen.nlp.ml.SequenceTuple> readTrainFile(String filename, String delimiter, int wordColIndex, int tagColIndex)
public static void normalizeEmission(HMMModel model)
public static void normalizeTrans(HMMModel model)
public static void eval(HMMModel model, String testFile, String delimiter, int wordColIndex, int tagColIndex)
public static void main(String[] args) throws InterruptedException
InterruptedExceptionCopyright © 2016. All rights reserved.