// this is created for each new annotation because it is not threadsafe
RuleBasedCorefMentionFinder finder = new RuleBasedCorefMentionFinder(allowReparsing);
List<List<Mention>> allUnprocessedMentions = finder.extractPredictedMentions(annotation, 0, corefSystem.dictionaries());
// add the relevant info to mentions and order them for coref
Document document = mentionExtractor.arrange(annotation, sentences, trees, allUnprocessedMentions);
List<List<Mention>> orderedMentions = document.getOrderedMentions();
if(VERBOSE){
for(int i = 0; i < orderedMentions.size(); i ++){
System.err.printf("Mentions in sentence #%d:\n", i);
for(int j = 0; j < orderedMentions.get(i).size(); j ++){
System.err.println("\tMention #" + j + ": " + orderedMentions.get(i).get(j).spanToString());