|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.tagger.maxent.TestClassifier
public class TestClassifier
Tags data and can handle either data with gold-standard tags (computing performance statistics) or unlabeled data. (The Constructor actually runs the tagger. The main entry points are the static methods at the bottom of the class.) Also can train data using the saveModel method. This class is really the entry point to all tagger operations, it seems.
Method Summary | |
---|---|
static void |
testModel(TaggerConfig config)
Test this file with the model saved in config.getModel() |
static void |
trainAndSaveModel(TaggerConfig config)
Reads in the training corpus from a filename and trains the tagger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void trainAndSaveModel(TaggerConfig config) throws IOException
config
- Configuration parameters for training a model (filename, etc.
IOException
- If IO problempublic static void testModel(TaggerConfig config) throws Exception
config
- The tagger config
Exception
- if IO problem
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |