public class EventFlattener
extends org.apache.uima.analysis_component.JCasAnnotator_ImplBase
FlattenedRelation instances according to EventMention
annotations in the CAS. This means that multiple EventMention
annotations that are connected with each other (in the way that one event is
the argument of another) are all flattened together in a single annotation.
The position of the annotation will be the position of the root event type,
i.e. the event that is no argument to another event.
Each EventMention that is not the argument of another EventMention is taken as a kind of 'event structure root'. For these root events, the root itself and all its direct and indirect arguments are assembled to form an instance of FlattenedRelation.
The features agents and patients are only filled for regulations and their subtypes (negative/positive regulation). This is because according to the event definition of BioNLP Shared Task - in which format the EventMention annotations are expected only define causal roles for arguments of those event types. For more information, please refer to http://www.nactem.ac.uk/tsujii/GENIA/SharedTask/detail.shtml#event.
| Constructor and Description |
|---|
EventFlattener() |
| Modifier and Type | Method and Description |
|---|---|
void |
process(org.apache.uima.jcas.JCas aJCas) |
getRequiredCasInterface, processgetCasInstancesRequired, hasNext, nextpublic void process(org.apache.uima.jcas.JCas aJCas)
throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
process in class org.apache.uima.analysis_component.JCasAnnotator_ImplBaseorg.apache.uima.analysis_engine.AnalysisEngineProcessExceptionCopyright © 2019 JULIE Lab Jena, Germany. All rights reserved.