org.apache.ctakes.padtermspotter.ae
Class PADHitAnnotator

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.padtermspotter.ae.PADHitAnnotator
All Implemented Interfaces:
org.apache.uima.analysis_component.AnalysisComponent

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


Nested Class Summary
(package private)  class PADHitAnnotator.HitComparator
           
 
Field Summary
static java.lang.String ANN_PART_ONE_TYPES_TO_IGNORE
          List of type ids to be ignored from being considered as hits.
static java.lang.String ANN_PART_TWO_TYPES_TO_IGNORE
          List of type ids to be ignored from being considered as hits.
static java.lang.String ANNOTATION_PART_ONE_FILTEROUT_NEGATED
          Flag to specify whether to filter out negated hits identified for ANNOTATION_PART_ONE_OF_PAIR
static java.lang.String ANNOTATION_PART_ONE_OF_PAIR
          Part 1 of the pair (of annotations) that makes up a hit
static java.lang.String ANNOTATION_PART_TWO_FILTEROUT_NEGATED
          Flag to specify whether to filter out negated hits identified for ANNOTATION_PART_TWO_OF_PAIR
static java.lang.String ANNOTATION_PART_TWO_OF_PAIR
          Part 2 of the pair (of annotations) that makes up a hit
static java.lang.String BACKUP_BOUNDARY_ANN_TYPE
          Annotation type that defines a backup boundary within which the dictionary hits should be present.
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
          Count of annotations defined by DISTANCE_ANN_TYPE between ANNOTATION_PART_ONE_OF_PAIR and ANNOTATION_PART_TWO_OF_PAIR
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
           
 
Constructor Summary
PADHitAnnotator()
           
 
Method Summary
 void initialize(org.apache.uima.UimaContext aCtx)
           
protected  void loadStopWords(java.io.File stopWordsFile)
           
 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

ANNOTATION_PART_ONE_OF_PAIR

public static java.lang.String ANNOTATION_PART_ONE_OF_PAIR
Part 1 of the pair (of annotations) that makes up a hit


ANNOTATION_PART_TWO_OF_PAIR

public static java.lang.String ANNOTATION_PART_TWO_OF_PAIR
Part 2 of the pair (of annotations) that makes up a hit


DISTANCE

public static java.lang.String DISTANCE
Count of annotations defined by DISTANCE_ANN_TYPE between ANNOTATION_PART_ONE_OF_PAIR and ANNOTATION_PART_TWO_OF_PAIR


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.


BACKUP_BOUNDARY_ANN_TYPE

public static java.lang.String BACKUP_BOUNDARY_ANN_TYPE
Annotation type that defines a backup boundary within which the dictionary hits should be present. This backup boundary will be used if no boundary annotations are present


ANNOTATION_PART_ONE_FILTEROUT_NEGATED

public static java.lang.String ANNOTATION_PART_ONE_FILTEROUT_NEGATED
Flag to specify whether to filter out negated hits identified for ANNOTATION_PART_ONE_OF_PAIR


ANNOTATION_PART_TWO_FILTEROUT_NEGATED

public static java.lang.String ANNOTATION_PART_TWO_FILTEROUT_NEGATED
Flag to specify whether to filter out negated hits identified for ANNOTATION_PART_TWO_OF_PAIR


ANN_PART_ONE_TYPES_TO_IGNORE

public static java.lang.String ANN_PART_ONE_TYPES_TO_IGNORE
List of type ids to be ignored from being considered as hits. Note these type ids are ids specified in the CSV dictionaries.


ANN_PART_TWO_TYPES_TO_IGNORE

public static java.lang.String ANN_PART_TWO_TYPES_TO_IGNORE
List of type ids to be ignored from being considered as hits. Note these type ids are ids specified in the CSV dictionaries.


NO_WINDOW_SIZE_SPECIFIED

public static int NO_WINDOW_SIZE_SPECIFIED

NO_ANNOTATION_TYPE_SPECIFIED

public static int NO_ANNOTATION_TYPE_SPECIFIED
Constructor Detail

PADHitAnnotator

public PADHitAnnotator()
Method Detail

initialize

public void initialize(org.apache.uima.UimaContext aCtx)
                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

loadStopWords

protected void loadStopWords(java.io.File stopWordsFile)
                      throws java.io.FileNotFoundException,
                             java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException