@PipeBitInfo(name="Assertion Engine", description="Adds Negation, Uncertainty, Conditional and Subject to annotations.", role=ANNOTATOR, dependencies=IDENTIFIED_ANNOTATION) public class AssertionAnalysisEngine extends org.apache.uima.analysis_component.JCasAnnotator_ImplBase
Constructor and Description |
---|
AssertionAnalysisEngine() |
Modifier and Type | Method and Description |
---|---|
String |
convert2DTokenArrayToText(ArrayList<ArrayList<String>> arrayOfLines) |
void |
debugAnnotationsInCas(org.apache.uima.jcas.JCas jcas,
IdentifiedAnnotation annotation,
String label) |
Map<Integer,org.apache.uima.jcas.tcas.Annotation> |
generateAnnotationMap(org.apache.uima.jcas.JCas jcas) |
Map<Integer,org.apache.uima.jcas.tcas.Annotation> |
generateAnnotationMap(org.apache.uima.jcas.JCas jcas,
Integer typeId) |
void |
initialize(org.apache.uima.UimaContext uimaContext) |
static void |
mapI2B2AssertionValueToCtakes(String assertionType,
IdentifiedAnnotation annotation) |
void |
process(org.apache.uima.jcas.JCas jcas) |
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
public void initialize(org.apache.uima.UimaContext uimaContext) throws org.apache.uima.resource.ResourceInitializationException
initialize
in interface org.apache.uima.analysis_component.AnalysisComponent
initialize
in class org.apache.uima.analysis_component.AnalysisComponent_ImplBase
org.apache.uima.resource.ResourceInitializationException
public void process(org.apache.uima.jcas.JCas jcas) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
process
in class org.apache.uima.analysis_component.JCasAnnotator_ImplBase
org.apache.uima.analysis_engine.AnalysisEngineProcessException
public static void mapI2B2AssertionValueToCtakes(String assertionType, IdentifiedAnnotation annotation) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
org.apache.uima.analysis_engine.AnalysisEngineProcessException
public void debugAnnotationsInCas(org.apache.uima.jcas.JCas jcas, IdentifiedAnnotation annotation, String label)
public Map<Integer,org.apache.uima.jcas.tcas.Annotation> generateAnnotationMap(org.apache.uima.jcas.JCas jcas)
public Map<Integer,org.apache.uima.jcas.tcas.Annotation> generateAnnotationMap(org.apache.uima.jcas.JCas jcas, Integer typeId)
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.