@PipeBitInfo(name="Drug Mention Annotator", description="Creates modifier annotations needed to handle the drug mentions.", dependencies={SECTION,BASE_TOKEN}, products=IDENTIFIED_ANNOTATION) public class DrugMentionAnnotator extends org.apache.uima.analysis_component.JCasAnnotator_ImplBase
Modifier and Type | Field and Description |
---|---|
static String |
BOUNDARY_ANN_TYPE
Annotation type that defines the boundary within which the dictionary hits should be present.
|
static String |
DISTANCE |
static String |
DISTANCE_ANN_TYPE
Annotation type that is used to count the distance.
|
static org.apache.log4j.Logger |
iv_logger |
static int |
NO_ANNOTATION_TYPE_SPECIFIED |
static int |
NO_WINDOW_SIZE_SPECIFIED |
static String |
PARAM_SEGMENTS_MEDICATION_RELATED
This identifies the section ids that will be considered in generating DrugMentionAnnotaitons
|
Constructor and Description |
---|
DrugMentionAnnotator() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(org.apache.uima.UimaContext annotCtx) |
void |
process(org.apache.uima.jcas.JCas jcas) |
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
public static org.apache.log4j.Logger iv_logger
public static final String PARAM_SEGMENTS_MEDICATION_RELATED
public static String DISTANCE
public static String DISTANCE_ANN_TYPE
public static String BOUNDARY_ANN_TYPE
public static int NO_WINDOW_SIZE_SPECIFIED
public static int NO_ANNOTATION_TYPE_SPECIFIED
public void initialize(org.apache.uima.UimaContext annotCtx) 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
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.