code: @Override
    protected final Parse processSample(final Parse reference) {
  
      final String sentenceText = reference.getText();
  
      final Parse[] predictions = ShiftReduceParser.parseLine(sentenceText,
          this.parser, 1);
  
      Parse prediction = null;
      if (predictions.length > 0) {
        prediction = predictions[0];
        // System.err.println("-> Prediction: " + prediction.getType());
      }
  
      this.fmeasure.updateScores(getConstituencySpans(reference),
          getConstituencySpans(prediction));
  
      return prediction;
    }
docs: /*
  (non-Javadoc)
  
  @see opennlp.tools.util.eval.Evaluator#processSample(java.lang.Object)