/** @generated * @param jcas JCas to which this Feature Structure belongs * @param begin offset to the begin spot in the SofA * @param end offset to the end spot in the SofA */ public Abbreviation(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
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 .getAnnotationByClassName(aJCas, outputType); newEntityOnAcronym.setBegin(abbrev.getBegin()); newEntityOnAcronym.setEnd(abbrev.getEnd()); newEntityOnAcronym.setTextualRepresentation(newEntityOnAcronym.getCoveredText()); newEntityOnAcronym.setSpecificType(emFullform.getSpecificType());
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); final EntityMention newEntityMention = (EntityMention) JCoReAnnotationTools .getAnnotationByClassName(aJCas, refEntityMention.getClass().getName()); newEntityMention.setBegin(abbreviation.getBegin()); newEntityMention.setEnd(abbreviation.getEnd()); newEntityMention.setSpecificType(refEntityMention.getSpecificType()); newEntityMention.setResourceEntryList(refEntityMention.getResourceEntryList());
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
if (abbreviation.getDefinedHere()) { tokenRepresentation = abbreviation.getTextReference().getCoveredText(); List<Token> abbrevTokens = tokenIndex.search(abbreviation.getTextReference()).collect(Collectors.toList()); if (abbreviation.getTextReference().getCoveredText().length() > 0 && abbrevTokens.size() == 0) {
AbbreviationLongform textRef = abbr.getTextReference(); ConceptMention em = conceptMentionIndex.getFirst(textRef); if (em == null) {
/** Internal - constructor used by generator * @generated * @param addr low level Feature Structure reference * @param type the type of this Feature Structure */ public Abbreviation(int addr, TOP_Type type) { super(addr, type); readObject(); }
/** @generated * @param jcas JCas to which this Feature Structure belongs */ public Abbreviation(JCas jcas) { super(jcas); readObject(); }