public F1Scorer(AnalysisEngine ae, String trainingFolder, String testFolder) {
this.ae = ae;
trainingDocuments = new ArrayList<TextRulerExampleDocument>();
CasCache casCache = new CasCache(5, this);
for (String fileName : getXMIfileNames(trainingFolder))
trainingDocuments.add(new TextRulerExampleDocument(fileName, casCache));
testFileNames = getXMIfileNames(testFolder);
}