public class MaxEntChunker extends MaxEntClassifier
Created by Maochen on 11/10/15.
| Modifier and Type | Field and Description |
|---|---|
static String |
TRAIN_FILE_DELIMITER |
| Constructor and Description |
|---|
MaxEntChunker() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args) |
SequenceTuple |
predict(String[] words,
String[] pos) |
void |
train(String trainFilePath) |
void |
validate(String testFile) |
loadModel, persistModel, predict, predict, setParameter, train, trainStringpublic static String TRAIN_FILE_DELIMITER
public void train(String trainFilePath) throws FileNotFoundException
FileNotFoundExceptionpublic SequenceTuple predict(String[] words, String[] pos)
public void validate(String testFile) throws FileNotFoundException
FileNotFoundExceptionpublic static void main(String[] args) throws IOException
IOExceptionCopyright © 2016. All rights reserved.