edu.stanford.nlp.classify
Class ClassifierExample

java.lang.Object
  extended by 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

Field Summary
protected static String BROKEN
           
protected static String GREEN
           
protected static String RED
           
protected static String WORKING
           
 
Method Summary
static void main(String[] args)
           
protected static Datum<String,String> makeStopLights(String ns, String ew)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Method Detail

makeStopLights

protected static Datum<String,String> makeStopLights(String ns,
                                                     String ew)

main

public static void main(String[] args)


Stanford NLP Group