Class ParserEvaluator
This implementation of
Evaluator<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:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionParserEvaluator(Parser aParser, ParserEvaluationMonitor... monitors) Initializes aParserEvaluatorinstance with the givenParser. -
Method Summary
Modifier and TypeMethodDescriptionprivate static Span[]getConstituencySpans(Parse parse) Obtainsspansfor every parse in a sentence.final FMeasureprotected final ParseprocessSample(Parse reference) Evaluates the given referenceTsample object.Methods inherited from class Evaluator
evaluate, evaluateSample
-
Field Details
-
fmeasure
-
parser
-
-
Constructor Details
-
ParserEvaluator
Initializes aParserEvaluatorinstance with the givenParser.- Parameters:
aParser- TheParserto evaluate.monitors- Theevaluation listeners.
-
-
Method Details
-
getConstituencySpans
-
processSample
Description copied from class:EvaluatorEvaluates the given referenceTsample object.The implementation has to update the score after every invocation.
- Specified by:
processSamplein classEvaluator<Parse>- Parameters:
reference- Areference sample.- Returns:
- The predicted
sample.
-
getFMeasure
-