}
private File trainingFile(TTDataSet data) throws IOException {
try {
GenericTTDataSet gds = (GenericTTDataSet) data;
CSVDataSource csv = (CSVDataSource) gds.getTrainingData();
if (",".equals(csv.getDelimiter())) {
File file = csv.getFile();
logger.debug("using training file {}", file);
return file;
}
} catch (ClassCastException e) {
/* No-op - this is fine, we will make a file. */