public static Annotation getContainedProperName(Annotation np, Document doc) { Annotation cont = ContainsProperName.getValue(np, doc); if (cont.getId() < 0) return null; else return cont; }
public static boolean containsProperName(Annotation np, Document doc) { Annotation cont = ContainsProperName.getValue(np, doc); if (cont.getId() < 0) return false; else return true; }