CmdLineUtil.checkOutputFile("document categorizer model", modelOutFile);
ObjectStream<DocumentSample> sampleStream =
openSampleData("Training", trainingDataInFile, parameters.getEncoding());
DoccatModel model;
try {
model = DocumentCategorizerME.train(parameters.getLanguage(), sampleStream,
parameters.getCutoff(), parameters.getNumberOfIterations());
} catch (IOException e) {
CmdLineUtil.printTrainingIoError(e);