Options options = CliFactory.parseArguments(Options.class, args);
List<Integer> patientSets = options.getPatients().getList();
List<Integer> trainItems = THYMEData.getTrainPatientSets(patientSets);
List<File> files = THYMEData.getFilesFor(trainItems, options.getRawTextDirectory());
CollectionReader reader = UriCollectionReader.getCollectionReaderFromFiles(files);
AggregateBuilder aggregateBuilder = new AggregateBuilder();
aggregateBuilder.add(UriToDocumentTextAnnotator.getDescription());
aggregateBuilder.add(AnalysisEngineFactory.createPrimitiveDescription(
XMIReader.class,
XMIReader.PARAM_XMI_DIRECTORY,