if (params.getEosChars() != null)
eos = params.getEosChars().toCharArray();
try {
Dictionary abbreviations = SentenceDetectorTrainerTool.loadDict(params.getAbbDict());
SentenceDetectorFactory sdFactory = SentenceDetectorFactory.create(
params.getFactory(), params.getLang(), true, abbreviations, eos);
validator = new SDCrossValidator(params.getLang(), mlParams, sdFactory,
errorListener);
validator.evaluate(sampleStream, params.getFolds());