TrainingParameters mlParams = ModelUtil.createTrainingParameters(70, 1);
mlParams.put(TrainingParameters.ALGORITHM_PARAM,
ModelType.MAXENT.toString());
ByteArrayOutputStream out = new ByteArrayOutputStream();
NameEvaluationErrorListener listener = new NameEvaluationErrorListener(out);
Map<String, Object> resources = Collections.emptyMap();
TokenNameFinderCrossValidator cv = new TokenNameFinderCrossValidator("en",
TYPE, mlParams, null, resources, listener);