@PipeBitInfo(name="Identified Annotation Expander", description="Enlarges the text span of an identified annotation based upon part of speech.", role=SPECIAL, dependencies=IDENTIFIED_ANNOTATION) public class IdentifiedAnnotationExpander extends org.apache.uima.fit.component.JCasAnnotator_ImplBase
Constructor and Description |
---|
IdentifiedAnnotationExpander() |
Modifier and Type | Method and Description |
---|---|
static List<Integer> |
expandToNP(org.apache.uima.jcas.JCas jCas,
IdentifiedAnnotation identifiedAnnotation) |
static String |
getEnclosingNP(org.apache.uima.jcas.JCas jCas,
IdentifiedAnnotation identifiedAnnotation) |
void |
process(org.apache.uima.jcas.JCas jCas) |
getLogger, initialize
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
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 List<Integer> expandToNP(org.apache.uima.jcas.JCas jCas, IdentifiedAnnotation identifiedAnnotation)
public static String getEnclosingNP(org.apache.uima.jcas.JCas jCas, IdentifiedAnnotation identifiedAnnotation)
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.