{ logger.debug("Training on file: " + files[i]); parser.parse(files[i]); }
//*-- write output to file
File modelFile = new File(MUSTRU_HOME + File.separator + "data" + File.separator + "training" + File.separator + "pos" + File.separator + "pos_tagger");
ObjectOutputStream objOut = new ObjectOutputStream(new FileOutputStream(modelFile));
estimator.compileTo(objOut);
Streams.closeOutputStream(objOut);
logger.debug("Finished POS tagger model generation");
}
}