String canonicalFileName = file.getName().substring(0, file.getName().lastIndexOf('.'));
for(numTrees = 0; (t = tr.readTree()) != null; numTrees++) {
String ftbID = ((CoreLabel) t.label()).get(CoreAnnotations.SentenceIDAnnotation.class);
System.out.printf("%s-%s\t%s%n",canonicalFileName, ftbID, t.toString());
List<Label> leaves = t.yield();
for(Label label : leaves) {
if(label instanceof CoreLabel)
morphAnalyses.add(((CoreLabel) label).originalText());
}
}