Class Evaluate

    • Method Detail

      • countUnks

        protected void countUnks​(Tree tree)
        Keep track of how many trees have at least one unknown, and how many of those have the top level annotation correct.
      • main

        public static void main​(String[] args)
        Expected arguments are -model model -treebank treebank
        For example
        java edu.stanford.nlp.sentiment.Evaluate -model edu/stanford/nlp/models/sentiment/sentiment.ser.gz -treebank /u/nlp/data/sentiment/sentiment-treebank/fiveclass/dev.txt Other 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 -equivalenceClasses .