edu.stanford.nlp.classify
Class ClassifierExample
java.lang.Object
edu.stanford.nlp.classify.ClassifierExample
public class ClassifierExample
- extends Object
Sample code that illustrates the training and use of a linear classifier.
This toy example is taken from the slides:
Christopher Manning and Dan Klein. 2003. Optimization, Maxent Models,
and Conditional Estimation without Magic.
Tutorial at HLT-NAACL 2003 and ACL 2003.
- Author:
- Dan Klein
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GREEN
protected static final String GREEN
- See Also:
- Constant Field Values
RED
protected static final String RED
- See Also:
- Constant Field Values
WORKING
protected static final String WORKING
- See Also:
- Constant Field Values
BROKEN
protected static final String BROKEN
- See Also:
- Constant Field Values
makeStopLights
protected static Datum<String,String> makeStopLights(String ns,
String ew)
main
public static void main(String[] args)
Stanford NLP Group