+ 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()); newEntityOnAcronym.setSpecificType(emFullform.getSpecificType());
.getAnnotationByClassName(aJCas, refEntityMention.getClass().getName()); newEntityMention.setBegin(abbreviation.getBegin()); newEntityMention.setEnd(abbreviation.getEnd()); newEntityMention.setSpecificType(refEntityMention.getSpecificType()); newEntityMention.setResourceEntryList(refEntityMention.getResourceEntryList());