edu.stanford.nlp.ie
Class NERDemo

java.lang.Object
  extended by edu.stanford.nlp.ie.NERDemo

public class NERDemo
extends Object

This is a demo of calling CRFClassifier programmatically.

Usage: java -cp "stanford-ner.jar:." NERDemo [serializedClassifier [fileName]]

If arguments aren't specified, they default to ner-eng-ie.crf-3-all2006.ser.gz and some hardcoded sample text.

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]

Author:
Jenny Finkel, Christopher Manning

Constructor Summary
NERDemo()
           
 
Method Summary
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NERDemo

public NERDemo()
Method Detail

main

public static void main(String[] args)
                 throws IOException
Throws:
IOException


Stanford NLP Group