public void process(JCas jCas) throws AnalysisEngineProcessException {
for (EventMention eMention : JCasUtil.select(jCas, EventMention.class)) {
// needed because SignSymptomMention, etc. do not have EventProperties
if (eMention.getClass().equals(EventMention.class)) {
// create a cleartk event object
Event event = new Event(jCas);
event.setBegin(eMention.getBegin());
event.setEnd(eMention.getEnd());
event.addToIndexes();
}
}
}