Package opennlp.tools.parser
Class ParserCrossValidator
- java.lang.Object
-
- opennlp.tools.parser.ParserCrossValidator
-
public class ParserCrossValidator extends Object
-
-
Constructor Summary
Constructors Constructor Description ParserCrossValidator(String languageCode, TrainingParameters params, HeadRules rules, ParserType parserType, ParserEvaluationMonitor... monitors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
evaluate(ObjectStream<Parse> samples, int nFolds)
FMeasure
getFMeasure()
-
-
-
Constructor Detail
-
ParserCrossValidator
public ParserCrossValidator(String languageCode, TrainingParameters params, HeadRules rules, ParserType parserType, ParserEvaluationMonitor... monitors)
-
-
Method Detail
-
evaluate
public void evaluate(ObjectStream<Parse> samples, int nFolds) throws IOException
- Throws:
IOException
-
getFMeasure
public FMeasure getFMeasure()
-
-