Package opennlp.tools.parser

# Class ParserEvaluator

java.lang.Object
opennlp.tools.util.eval.Evaluator<opennlp.tools.parser.Parse>
opennlp.tools.parser.ParserEvaluator

public class ParserEvaluator extends opennlp.tools.util.eval.Evaluator<opennlp.tools.parser.Parse>
This implementation of `opennlp.tools.util.eval.Evaluator<opennlp.tools.parser.Parse>` behaves like `EVALB` with no exceptions, e.g, without removing punctuation tags, or equality between `ADVP` and `PRT`, as in COLLINS convention.

To follow parsing evaluation conventions (Bikel, Collins, Charniak, etc.) as in `EVALB`, options are to be added to the `ParserEvaluatorTool`.

See Also:
  - `Parser`
  - `Evaluator`
  - `Parse`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ParserEvaluator(opennlp.tools.parser.Parser aParser, opennlp.tools.parser.ParserEvaluationMonitor... monitors)`
  Initializes a `ParserEvaluator` instance with the given `Parser`.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `final opennlp.tools.util.eval.FMeasure`
  `getFMeasure()`

  ### Methods inherited from class opennlp.tools.util.eval.Evaluator

  `evaluate, evaluateSample`

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ParserEvaluator

    public ParserEvaluator(opennlp.tools.parser.Parser aParser, opennlp.tools.parser.ParserEvaluationMonitor... monitors)
    Initializes a `ParserEvaluator` instance with the given `Parser`.
    Parameters:
      `aParser` - The `Parser` to evaluate.
      `monitors` - The `evaluation listeners`.

- ## Method Details

  - ### getFMeasure

    public final opennlp.tools.util.eval.FMeasure getFMeasure()