/** @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 ConceptMention(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
continue; if (emFullform.getComponentId() != null && emFullform.getComponentId().equals(COMPONENT_ID) && (emAcronym == null || !emAcronym.getClass().getName().equals(emFullform.getClass().getName()))) { LOGGER.debug("annotateAcronymsWithFullFormEntity() - fullform of abbreviation (" + 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()); newEntityOnAcronym.setComponentId(COMPONENT_ID + "+acronym"); newEntityOnAcronym.setConfidence(emFullform.getConfidence() + ""); newEntityOnAcronym.addToIndexes();
ConceptMention newEntity = (ConceptMention) JCoReAnnotationTools.getAnnotationByClassName(aJCas, outputType); newEntity.setBegin(start); newEntity.setEnd(end); newEntity.setSpecificType(chunk.type()); newEntity.setComponentId(COMPONENT_ID); newEntity.setConfidence(chunk.score() + ""); newEntity.addToIndexes();
/** @generated * @param jcas JCas to which this Feature Structure belongs */ public ConceptMention(JCas jcas) { super(jcas); readObject(); }
LOGGER.debug(chunk + " chunk \"{}\" is an abbreviation and respective full form \"{}\" is ConceptMention with same type as OutputType\n", chunktext, em.getCoveredText()); return true; new Object[] { chunktext, em.getCoveredText(), emType, outputType }); return false;
/** Internal - constructor used by generator * @generated * @param addr low level Feature Structure reference * @param type the type of this Feature Structure */ public ConceptMention(int addr, TOP_Type type) { super(addr, type); readObject(); }