for (Constituent cons : allGoldConstituents) { HashSet<Constituent> overlappingGoldCanonicalCons = gold.getOverlappingChainsCanonicalMentions(cons); HashSet<Constituent> overlappingPredCanonicalCons = prediction.getOverlappingChainsCanonicalMentions(cons);
for (Constituent cons : allGoldConstituents) { HashSet<Constituent> overlappingGoldCanonicalCons = gold.getOverlappingChainsCanonicalMentions(cons); HashSet<Constituent> overlappingPredCanonicalCons = prediction.getOverlappingChainsCanonicalMentions(cons);
for (Constituent cons1 : allGoldConstituents) { HashSet<Constituent> coreferents1gold = gold.getOverlappingChainsCanonicalMentions(cons1); HashSet<Constituent> coreferents1pred = prediction.getOverlappingChainsCanonicalMentions(cons1); for (Constituent c : coreferents1gold) coreferents1gold.addAll(gold.getCoreferentMentionsViaRelations(c));
for (Constituent cons1 : allGoldConstituents) { HashSet<Constituent> coreferents1gold = gold.getOverlappingChainsCanonicalMentions(cons1); HashSet<Constituent> coreferents1pred = prediction.getOverlappingChainsCanonicalMentions(cons1); for (Constituent c : coreferents1gold) coreferents1gold.addAll(gold.getCoreferentMentionsViaRelations(c));