SDCrossValidator (Apache OpenNLP Tools 2.5.9 API)
Description: declaration: package: opennlp.tools.sentdetect, class: SDCrossValidator

# Class SDCrossValidator

java.lang.Object
opennlp.tools.sentdetect.SDCrossValidator

public class SDCrossValidator extends Object
A cross validator for `sentence detectors`.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `SDCrossValidator(String languageCode, TrainingParameters params, SentenceDetectorFactory sdFactory, SentenceDetectorEvaluationMonitor... listeners)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `evaluate(ObjectStream<SentenceSample> samples, int nFolds)`
  Starts the evaluation.
  `FMeasure`
  `getFMeasure()`

  ### Methods inherited from class Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### SDCrossValidator

    public SDCrossValidator(String languageCode, TrainingParameters params, SentenceDetectorFactory sdFactory, SentenceDetectorEvaluationMonitor... listeners)

- ## Method Details

  - ### evaluate

    public void evaluate(ObjectStream<SentenceSample> samples, int nFolds) throws IOException
    Starts the evaluation.
    Parameters:
      `samples` - the data to train and test
      `nFolds` - number of folds
    Throws:
      `IOException` - Thrown if IO errors occurred during processing.

  - ### getFMeasure

    public FMeasure getFMeasure()