| Package | Description |
|---|---|
| org.maochen.nlp.ml.classifier.hmm |
| Modifier and Type | Method and Description |
|---|---|
static HMMModel |
HMM.loadModel(String modelPath) |
static HMMModel |
HMM.train(List<SequenceTuple> data)
Tag (Latent Var) is Xi, words (Observed Var) yi (or oi) ...
|
| Modifier and Type | Method and Description |
|---|---|
static Map<String,Double> |
HMM.eval(HMMModel model,
String testFile,
String delimiter,
int wordColIndex,
int tagColIndex,
boolean print) |
static List<String> |
Viterbi.resolve(HMMModel model,
String[] words) |
static void |
HMM.saveModel(String modelPath,
HMMModel model) |
static List<String> |
HMM.viterbi(HMMModel model,
String[] words) |
Copyright © 2017. All rights reserved.