public class CRFNER extends CRFClassifier
| Modifier and Type | Field and Description |
|---|---|
IFeatureExtractor |
featureExtractor |
static String |
TRAIN_FILE_DELIMITER |
static int |
TRAIN_FILE_TAG_COL |
| Constructor and Description |
|---|
CRFNER() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args) |
org.maochen.nlp.ml.SequenceTuple |
predict(String[] words) |
void |
train(String trainFilePath) |
void |
validate(String testFile) |
loadModel, persistModel, predict, setParameter, train, validatepublic static String TRAIN_FILE_DELIMITER
public static final int TRAIN_FILE_TAG_COL
public IFeatureExtractor featureExtractor
public void train(String trainFilePath) throws FileNotFoundException
FileNotFoundExceptionpublic org.maochen.nlp.ml.SequenceTuple predict(String[] words)
public void validate(String testFile) throws FileNotFoundException
FileNotFoundExceptionpublic static void main(String[] args) throws IOException
IOExceptionCopyright © 2016. All rights reserved.