int end = charOffset + m.group(1).length(); EventMention mention = new EventMention(jcas, charOffset, end);
int end = charOffset + m.group(1).length(); EventMention mention = new EventMention(jcas, charOffset, end);
|| type==CONST.NE_TYPE_ID_ANATOMICAL_SITE ) { eMention = new EventMention(initView, first.start, last.end); } else { eMention = new IdentifiedAnnotation(initView, first.start, last.end);
|| type==CONST.NE_TYPE_ID_ANATOMICAL_SITE ) { eMention = new EventMention(initView, first.start, last.end); } else { eMention = new IdentifiedAnnotation(initView, first.start, last.end);
/** * Does more than a typical reader - also creates an IdentifiedAnnotation * and a DocumentID annotation */ @Override public void getNext(CAS aCAS) throws IOException, CollectionException { JCas jCas; try { jCas = aCAS.getJCas(); } catch(CASException e){ throw new CollectionException(e); } NegExAnnotation a = list.get(i); i++; jCas.setDocumentText(a.sentenceText); DocumentID documentID = new DocumentID(jCas); documentID.setDocumentID("doc" + a.lineNumber); documentID.addToIndexes(); EventMention ia = new EventMention(jCas); ia.setBegin(Integer.parseInt(a.begin)); ia.setEnd(Integer.parseInt(a.end)); if (!skipReadingValuesJustReadText) ia.setPolarity(Integer.parseInt(a.polarity)); ia.addToIndexes(); }
/** * Does more than a typical reader - also creates an IdentifiedAnnotation * and a DocumentID annotation */ @Override public void getNext(CAS aCAS) throws IOException, CollectionException { JCas jCas; try { jCas = aCAS.getJCas(); } catch(CASException e){ throw new CollectionException(e); } NegExAnnotation a = list.get(i); i++; jCas.setDocumentText(a.sentenceText); DocumentID documentID = new DocumentID(jCas); documentID.setDocumentID("doc" + a.lineNumber); documentID.addToIndexes(); EventMention ia = new EventMention(jCas); ia.setBegin(Integer.parseInt(a.begin)); ia.setEnd(Integer.parseInt(a.end)); if (!skipReadingValuesJustReadText) ia.setPolarity(Integer.parseInt(a.polarity)); ia.addToIndexes(); }
error("Illegal negative span", id); EventMention event = new EventMention(entCas, begin, end); event.addToIndexes();
EventMention mention = new EventMention(jCas, coveringSpan.begin, coveringSpan.end); addIdentifiedAnnotationFeatures( annotation, EventMention mention = new EventMention(jCas, coveringSpan.begin, coveringSpan.end); addIdentifiedAnnotationFeatures( annotation, EventMention eventMention = new EventMention(jCas, coveringSpan.begin, coveringSpan.end); eventMention.setConfidence(1.0f); eventMention.setDiscoveryTechnique(CONST.NE_DISCOVERY_TECH_GOLD_ANNOTATION);
EventMention mention = new EventMention(jCas, coveringSpan.begin, coveringSpan.end); addIdentifiedAnnotationFeatures( annotation, EventMention mention = new EventMention(jCas, coveringSpan.begin, coveringSpan.end); addIdentifiedAnnotationFeatures( annotation, EventMention eventMention = new EventMention(jCas, coveringSpan.begin, coveringSpan.end); eventMention.setConfidence(1.0f); eventMention.setDiscoveryTechnique(CONST.NE_DISCOVERY_TECH_GOLD_ANNOTATION);
EventMention mention = new EventMention(jCas, coveringSpan.begin, coveringSpan.end); addIdentifiedAnnotationFeatures( annotation, EventMention mention = new EventMention(jCas, coveringSpan.begin, coveringSpan.end); addIdentifiedAnnotationFeatures( annotation, EventMention eventMention = new EventMention(jCas, coveringSpan.begin, coveringSpan.end); eventMention.setConfidence(1.0f); eventMention.setDiscoveryTechnique(CONST.NE_DISCOVERY_TECH_GOLD_ANNOTATION);
EventMention mention = new EventMention(jCas, coveringSpan.begin, coveringSpan.end); addIdentifiedAnnotationFeatures( annotation, EventMention mention = new EventMention(jCas, coveringSpan.begin, coveringSpan.end); addIdentifiedAnnotationFeatures( annotation, EventMention eventMention = new EventMention(jCas, coveringSpan.begin, coveringSpan.end); eventMention.setConfidence(1.0f); eventMention.setDiscoveryTechnique(CONST.NE_DISCOVERY_TECH_GOLD_ANNOTATION);
if (conceptType.equals(ConceptType.TREATMENT)) entityOrEventMention = new EventMention(jcas); } else
if (conceptType.equals(ConceptType.TREATMENT)) entityOrEventMention = new EventMention(jcas); } else
EventMention newGoldEventMention = new EventMention(goldView, oldSystemEventMention.getBegin(), oldSystemEventMention.getEnd());
EventMention newGoldEventMention = new EventMention(goldView, oldSystemEventMention.getBegin(), oldSystemEventMention.getEnd());