org.apache.ctakes.drugner.ae
Class DrugMentionAnnotator

java.lang.Object
  extended by org.apache.uima.analysis_component.AnalysisComponent_ImplBase
      extended by org.apache.uima.analysis_component.Annotator_ImplBase
          extended by org.apache.uima.analysis_component.JCasAnnotator_ImplBase
              extended by org.apache.ctakes.drugner.ae.DrugMentionAnnotator
All Implemented Interfaces:
org.apache.uima.analysis_component.AnalysisComponent

public class DrugMentionAnnotator
extends org.apache.uima.analysis_component.JCasAnnotator_ImplBase

Finds tokens based on context. There are two major groupings or ranges that will be used to create the additional annotations needed to handle the drug mentions used to represent the status changes.

Author:
Mayo Clinic

Field Summary
static java.lang.String BOUNDARY_ANN_TYPE
          Annotation type that defines the boundary within which the dictionary hits should be present.
static java.lang.String DISTANCE
           
static java.lang.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 java.lang.String PARAM_SEGMENTS_MEDICATION_RELATED
          This identifies the section ids that will be considered in generating DrugMentionAnnotaitons
 
Constructor Summary
DrugMentionAnnotator()
           
 
Method Summary
 void initialize(org.apache.uima.UimaContext annotCtx)
           
 void process(org.apache.uima.jcas.JCas jcas)
           
 
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
 
Methods inherited from class org.apache.uima.analysis_component.AnalysisComponent_ImplBase
batchProcessComplete, collectionProcessComplete, destroy, getContext, getResultSpecification, reconfigure, setResultSpecification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

iv_logger

public static org.apache.log4j.Logger iv_logger

PARAM_SEGMENTS_MEDICATION_RELATED

public static final java.lang.String PARAM_SEGMENTS_MEDICATION_RELATED
This identifies the section ids that will be considered in generating DrugMentionAnnotaitons

See Also:
Constant Field Values

DISTANCE

public static java.lang.String DISTANCE

DISTANCE_ANN_TYPE

public static java.lang.String DISTANCE_ANN_TYPE
Annotation type that is used to count the distance.


BOUNDARY_ANN_TYPE

public static java.lang.String BOUNDARY_ANN_TYPE
Annotation type that defines the boundary within which the dictionary hits should be present.


NO_WINDOW_SIZE_SPECIFIED

public static int NO_WINDOW_SIZE_SPECIFIED

NO_ANNOTATION_TYPE_SPECIFIED

public static int NO_ANNOTATION_TYPE_SPECIFIED
Constructor Detail

DrugMentionAnnotator

public DrugMentionAnnotator()
Method Detail

initialize

public void initialize(org.apache.uima.UimaContext annotCtx)
                throws org.apache.uima.resource.ResourceInitializationException
Specified by:
initialize in interface org.apache.uima.analysis_component.AnalysisComponent
Overrides:
initialize in class org.apache.uima.analysis_component.AnalysisComponent_ImplBase
Throws:
org.apache.uima.resource.ResourceInitializationException

process

public void process(org.apache.uima.jcas.JCas jcas)
             throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
Specified by:
process in class org.apache.uima.analysis_component.JCasAnnotator_ImplBase
Throws:
org.apache.uima.analysis_engine.AnalysisEngineProcessException