Class ParserEvaluator
Class for ParserEvaluator.
This ParserEvaluator 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.
public class ParserEvaluator : Evaluator<Parse>
- Inheritance
-
ParserEvaluator
- Inherited Members
Constructors
ParserEvaluator(IParser, params IParserEvaluationMonitor?[]?)
Construct a parser with some evaluation monitors.
public ParserEvaluator(IParser aParser, params IParserEvaluationMonitor?[]? monitors)
Parameters
aParserIParserthe parser to evaluate
monitorsIParserEvaluationMonitor[]the evaluation monitors
Properties
FMeasure
It returns the fmeasure result.
public FMeasure FMeasure { get; }
Property Value
Methods
ProcessSample(Parse)
Evaluates the given reference sample object.
The implementation has to update the score after every invocation.
protected override sealed Parse ProcessSample(Parse reference)
Parameters
referenceParsethe reference sample.
Returns
- Parse
the predicted sample