MessageSet messages = this.loadMessages(options.inputCSVFile);
Segmentation segmentation = factory.constructSegmentation();
SegmentSet segments = segmentation.segment(messages);
//Set up a cross validation controller.
CrossValidationController crossValidationController = new CrossValidationController();
//Configure controller
factory.configureCrossValidation(crossValidationController);
//Run cross validation
crossValidationController.setSegmentSet(segments);
crossValidationController.run();
EvaluationReport evalReport = crossValidationController.getEvaluationReport();
if (evalReport != null) {
System.out.println("== Saving Results of Cross Validation ==");
saveEvaluationReport(evalReport, options.outputEvaluationReportFile);