mention.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(); }
/** * 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(); }
event.addToIndexes();
eventMention.addToIndexes(); idAnnotationMap.put(annotation.id, eventMention);
eventMention.addToIndexes(); idAnnotationMap.put(annotation.id, eventMention);
eventMention.addToIndexes(); idAnnotationMap.put(annotation.id, eventMention);
eventMention.addToIndexes(); idAnnotationMap.put(annotation.id, eventMention);
newGoldEventMention.setTypeID(oldSystemEventMention.getTypeID()); newGoldEventMention.addToIndexes();
newGoldEventMention.setTypeID(oldSystemEventMention.getTypeID()); newGoldEventMention.addToIndexes();