Class EventFlattener
- java.lang.Object
-
- org.apache.uima.analysis_component.AnalysisComponent_ImplBase
-
- org.apache.uima.analysis_component.Annotator_ImplBase
-
- org.apache.uima.analysis_component.JCasAnnotator_ImplBase
-
- de.julielab.jcore.ae.eventflattener.EventFlattener
-
- All Implemented Interfaces:
org.apache.uima.analysis_component.AnalysisComponent
public class EventFlattener extends org.apache.uima.analysis_component.JCasAnnotator_ImplBaseCreatesFlattenedRelationinstances according toEventMentionannotations 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.
- Author:
- faessler
-
-
Constructor Summary
Constructors Constructor Description EventFlattener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprocess(org.apache.uima.jcas.JCas aJCas)-
Methods inherited from class org.apache.uima.analysis_component.JCasAnnotator_ImplBase
getRequiredCasInterface, process
-
Methods inherited from class org.apache.uima.analysis_component.Annotator_ImplBase
getCasInstancesRequired, hasNext, next
-
-
-
-
Method Detail
-
process
public void process(org.apache.uima.jcas.JCas aJCas) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException- Specified by:
processin classorg.apache.uima.analysis_component.JCasAnnotator_ImplBase- Throws:
org.apache.uima.analysis_engine.AnalysisEngineProcessException
-
-