edu.stanford.nlp.optimization
Class CmdEvaluator

java.lang.Object
  extended by edu.stanford.nlp.optimization.CmdEvaluator
All Implemented Interfaces:
Evaluator
Direct Known Subclasses:
CRFClassifierEvaluator

public abstract class CmdEvaluator
extends Object
implements Evaluator

Runs a cmdline to evaluate a dataset (assumes cmd takes input from stdin)

Author:
Angel Chang

Field Summary
protected  String description
           
 
Constructor Summary
CmdEvaluator()
           
 
Method Summary
 double evaluate(double[] x)
           
 void evaluateCmd(String[] cmd)
           
abstract  String[] getCmd()
           
protected  String[] getCmd(String cmdStr)
           
 String getError()
           
 String getOutput()
           
abstract  void outputToCmd(OutputStream outputStream)
           
abstract  void setValues(double[] x)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

description

protected String description
Constructor Detail

CmdEvaluator

public CmdEvaluator()
Method Detail

setValues

public abstract void setValues(double[] x)

getCmd

public abstract String[] getCmd()

outputToCmd

public abstract void outputToCmd(OutputStream outputStream)

getCmd

protected String[] getCmd(String cmdStr)

getOutput

public String getOutput()

getError

public String getError()

toString

public String toString()
Overrides:
toString in class Object

evaluateCmd

public void evaluateCmd(String[] cmd)

evaluate

public double evaluate(double[] x)
Specified by:
evaluate in interface Evaluator


Stanford NLP Group