Package opennlp.tools.parser
Class ParserEvaluator
- java.lang.Object
-
- opennlp.tools.util.eval.Evaluator<Parse>
-
- opennlp.tools.parser.ParserEvaluator
-
public class ParserEvaluator extends Evaluator<Parse>
This implementation ofEvaluator
behaves likeEVALB
with no exceptions, e.g, without removing punctuation tags, or equality betweenADVP
andPRT
, as in COLLINS convention.To follow parsing evaluation conventions (Bikel, Collins, Charniak, etc.) as in
EVALB
, options are to be added to theParserEvaluatorTool
.
-
-
Constructor Summary
Constructors Constructor Description ParserEvaluator(Parser aParser, ParserEvaluationMonitor... monitors)
Initializes aParserEvaluator
instance with the givenParser
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FMeasure
getFMeasure()
-
Methods inherited from class opennlp.tools.util.eval.Evaluator
evaluate, evaluateSample
-
-
-
-
Constructor Detail
-
ParserEvaluator
public ParserEvaluator(Parser aParser, ParserEvaluationMonitor... monitors)
Initializes aParserEvaluator
instance with the givenParser
.- Parameters:
aParser
- TheParser
to evaluate.monitors
- Theevaluation listeners
.
-
-
Method Detail
-
getFMeasure
public final FMeasure getFMeasure()
-
-