LOGGER.debug("ignoreLabel() - found JACRO-recognized abbreviations under this string: " + coveredText); 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
AbbreviationLongform textRef = abbr.getTextReference(); ConceptMention em = conceptMentionIndex.getFirst(textRef); if (em == null) {
AbbreviationLongform fullFormAnnotation = abbrev.getTextReference(); LOGGER.debug("annotateAcronymsWithFullFormEntity() - checking abbreviation: " + abbrev.getCoveredText());
tokenRepresentation = abbreviation.getTextReference().getCoveredText(); List<Token> abbrevTokens = tokenIndex.search(abbreviation.getTextReference()).collect(Collectors.toList()); if (abbreviation.getTextReference().getCoveredText().length() > 0 && abbrevTokens.size() == 0) {
Abbreviation abbreviation = (Abbreviation) it.next(); acronyms.add(abbreviation); fullforms.add(abbreviation.getTextReference()); de.julielab.jcore.types.Annotation fullform = abbreviation.getTextReference(); EntityMention abbreviationEntityMention = (EntityMention) entities.floor(abbreviation); EntityMention fullFormEntityMention = (EntityMention) entities.floor(fullform);