public class CRFChunker extends CRFClassifier
| Modifier and Type | Field and Description |
|---|---|
static String |
TRAIN_FILE_DELIMITER |
| Constructor and Description |
|---|
CRFChunker() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args) |
SequenceTuple |
predict(String[] words,
String[] pos) |
static void |
printSequenceTuple(SequenceTuple st,
List<String> correctTag) |
void |
train(String trainFilePath) |
void |
validate(String testFile) |
loadModel, persistModel, predict, setParameter, train, validatepublic 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 printSequenceTuple(SequenceTuple st, List<String> correctTag)
public static void main(String[] args) throws IOException
IOExceptionCopyright © 2016. All rights reserved.