CmdLineUtil.checkOutputFile("name finder model", modelOutFile);
ObjectStream<NameSample> sampleStream = openSampleData("Training", trainingDataInFile,
params.getEncoding());
TokenNameFinderModel model;
try {
if (mlParams == null) {
model = opennlp.tools.namefind.NameFinderME.train(params.getLang(), params.getType(),
sampleStream, featureGeneratorBytes, resources, params.getIterations(),
params.getCutoff());