public class NERDemo
extends java.lang.Object
Usage: java -mx400m -cp "*" NERDemo [serializedClassifier [fileName]]
If arguments aren't specified, they default to classifiers/english.all.3class.distsim.crf.ser.gz and some hardcoded sample text. If run with arguments, it shows some of the ways to get k-best labelings and probabilities out with CRFClassifier. If run without arguments, it shows some of the alternative output formats that you can get.
To use CRFClassifier from the command line:
java -mx400m edu.stanford.nlp.ie.crf.CRFClassifier -loadClassifier [classifier] -textFile [file]
Or if the file is already tokenized and one word per line, perhaps in a tab-separated value format with extra columns for part-of-speech tag, etc., use the version below (note the 's' instead of the 'x'):
java -mx400m edu.stanford.nlp.ie.crf.CRFClassifier -loadClassifier [classifier] -testFile [file]
Constructor and Description |
---|
NERDemo() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args) |