@Override public void process(JCas jCas) throws AnalysisEngineProcessException { for (EntityMention entityMention : JCasUtil.select(jCas, EntityMention.class)) { entityMention.setPolarity(1); } for (EventMention eventMention : JCasUtil.select(jCas, EventMention.class)) { eventMention.setPolarity(1); } } // end method ReferenceAnnotationsSystemAssertionClearer.process() } // end class ReferenceAnnotationsSystemAssertionClearer
@Override public void process(JCas jCas) throws AnalysisEngineProcessException { for (EntityMention entityMention : JCasUtil.select(jCas, EntityMention.class)) { entityMention.setPolarity(1); } for (EventMention eventMention : JCasUtil.select(jCas, EventMention.class)) { eventMention.setPolarity(1); } } // end method ReferenceAnnotationsSystemAssertionClearer.process() } // end class ReferenceAnnotationsSystemAssertionClearer
mention.setPolarity(CONST.NE_POLARITY_NEGATION_ABSENT); mention.setConditional(CONST.NE_CONDITIONAL_FALSE); mention.setUncertainty(CONST.NE_UNCERTAINTY_ABSENT); mention.setPolarity(CONST.NE_POLARITY_NEGATION_PRESENT); }else if(m.group(7).equals("hypothetical")){
mention.setPolarity(CONST.NE_POLARITY_NEGATION_ABSENT); mention.setConditional(CONST.NE_CONDITIONAL_FALSE); mention.setUncertainty(CONST.NE_UNCERTAINTY_ABSENT); mention.setPolarity(CONST.NE_POLARITY_NEGATION_PRESENT); }else if(m.group(7).equals("hypothetical")){
/** * 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(); }
newGoldEventMention.setConditional(oldSystemEventMention.getConditional()); newGoldEventMention.setGeneric(oldSystemEventMention.getGeneric()); newGoldEventMention.setPolarity(oldSystemEventMention.getPolarity()); newGoldEventMention.setSubject(oldSystemEventMention.getSubject()); newGoldEventMention.setHistoryOf(oldSystemEventMention.getHistoryOf());
newGoldEventMention.setConditional(oldSystemEventMention.getConditional()); newGoldEventMention.setGeneric(oldSystemEventMention.getGeneric()); newGoldEventMention.setPolarity(oldSystemEventMention.getPolarity()); newGoldEventMention.setSubject(oldSystemEventMention.getSubject()); newGoldEventMention.setHistoryOf(oldSystemEventMention.getHistoryOf());