for (Abbreviation abbreviation : abbreviations) { if (abbreviation.getTextReference() != null && abbreviation.getCoveredText().matches(ABBREV_PATTERN)) { LOGGER.debug("ignoreLabel() - abbreviation: " + abbreviation.getCoveredText() + " introduced for: " + abbreviation.getTextReference().getCoveredText()); return false; // should not be ignored
Abbreviation abbrev = (Abbreviation) abbrevIter.next(); AbbreviationLongform fullFormAnnotation = abbrev.getTextReference(); LOGGER.debug("annotateAcronymsWithFullFormEntity() - checking abbreviation: " + abbrev.getCoveredText()); + abbrev.getCoveredText() + " [begin=" + abbrev.getBegin() + "; end=" + abbrev.getEnd() + "]) has ConceptMention: " + emFullform.toString()); ConceptMention newEntityOnAcronym = (ConceptMention) JCoReAnnotationTools