|
|||||||||
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. Also can train data using the saveModel method. This class is really the entry point to all tagger operations, it seems.
Constructor Summary | |
---|---|
TestClassifier(TaggerConfig config)
|
|
TestClassifier(TaggerConfig config,
int format)
format can be either of 1 or 0 1 means the test file has the correct tags and is in format one word tag per line 0 means the test file does not have the correct tags and is just tokenized. |
Method Summary | |
---|---|
static void |
iterate(String filename)
Warning: This method almost certainly no longer works. |
static void |
saveModel(TaggerConfig config)
Reads in the training corpus from a filename and trains the tagger |
void |
test(int format,
String saveRoot,
String delimiter,
String encoding)
Begin tagging. |
void |
test(String saveRoot,
String delimiter,
String encoding)
Test on a file containing correct tags already |
static void |
testModel(TaggerConfig config)
Test this file with the model saved in config.getModel() |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestClassifier(TaggerConfig config) throws Exception
Exception
public TestClassifier(TaggerConfig config, int format) throws Exception
config
- format
-
Exception
Method Detail |
---|
public void test(int format, String saveRoot, String delimiter, String encoding) throws Exception
format
- saveRoot
- delimiter
- encoding
-
Exception
public void test(String saveRoot, String delimiter, String encoding) throws Exception
Exception
public static void iterate(String filename)
public static void saveModel(TaggerConfig config) throws Exception
config
- Configuration parameters for training a model (filename, etc.
Exception
public static void testModel(TaggerConfig config) throws Exception
config
- The tagger config
Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |