+ abbrev.getCoveredText() + " [begin=" + abbrev.getBegin() + "; end=" + abbrev.getEnd() + "]) has ConceptMention: " + emFullform.toString()); ConceptMention newEntityOnAcronym = (ConceptMention) JCoReAnnotationTools .getAnnotationByClassName(aJCas, outputType); newEntityOnAcronym.setBegin(abbrev.getBegin()); newEntityOnAcronym.setEnd(abbrev.getEnd()); newEntityOnAcronym.setTextualRepresentation(newEntityOnAcronym.getCoveredText());
final EntityMention newEntityMention = (EntityMention) JCoReAnnotationTools .getAnnotationByClassName(aJCas, refEntityMention.getClass().getName()); newEntityMention.setBegin(abbreviation.getBegin()); newEntityMention.setEnd(abbreviation.getEnd()); newEntityMention.setSpecificType(refEntityMention.getSpecificType());