Class ParserEvaluator

Namespace
NOpenNLP.Tools.Parser
Assembly
NOpenNLP.Tools.dll

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

aParser IParser

the parser to evaluate

monitors IParserEvaluationMonitor[]

the evaluation monitors

Properties

FMeasure

It returns the fmeasure result.

public FMeasure FMeasure { get; }

Property Value

FMeasure

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

reference Parse

the reference sample.

Returns

Parse

the predicted sample