public class Evaluate extends AbstractEvaluate
|Modifier and Type||Method and Description|
Expected arguments are
Sets the predicted sentiment label for all trees given.
approxAccuracy, approxCombinedAccuracy, countLengthAccuracy, countRoot, countTree, eval, eval, exactNodeAccuracy, exactRootAccuracy, lengthAccuracies, printConfusionMatrix, printLengthAccuracies, printSummary, reset
public Evaluate(SentimentModel model)
RNNCoreAnnotations.PredictedClassannotation for all nodes in all trees.
public static void main(String args)
-model model -treebank treebank
java edu.stanford.nlp.sentiment.Evaluate edu/stanford/nlp/models/sentiment/sentiment.ser.gz /u/nlp/data/sentiment/trees/dev.txtOther arguments are available, for example
-numClasses. See RNNOptions.java, RNNTestOptions.java and RNNTrainOptions.java for more arguments. The configuration is usually derived from the RNN model file, which is not available here as the predictions are external. It is the caller's responsibility to provide a configuration matching the settings of the external predictor. Flags of interest include
Stanford NLP Group