SentenceDetectorFactory sdFactory = SentenceDetectorFactory.create(
params.getFactory(), params.getLang(), true, abbreviations, eos);
validator = new SDCrossValidator(params.getLang(), mlParams, sdFactory,
errorListener);
validator.evaluate(sampleStream, params.getFolds());
}
catch (IOException e) {
throw new TerminateToolException(-1, "IO error while reading training data or indexing data: " +
e.getMessage(), e);
}