/** @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 EventMention(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
/** @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 EventMention(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
/** @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 EventMention(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
/** @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 EventMention(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
/** * 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(); }