Assert.assertTrue("Failure in UnitTest - all FST models need to be generate=true",
corpus.allowCreation);
if(!corpus.isFstFile()){
//create a task on the FST corpus creation service
creationTasks.add(fstConfig.getExecutorService().submit(
new CorpusCreationTask(fstConfig, corpus)));
}
}
//and wait until all models are built (should only take some seconds on
//typical hardware
for(Future<?> future : creationTasks){