org.apache.ctakes.core.ae
Class SectionSegmentAnnotator

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

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

Creates a single segment annotation that spans the entire document. This is useful for running a TAE without a CasInitializer that would normally create the segment annotations.

Author:
Mayo Clinic

Field Summary
 HashMap<Integer,DocumentSection> sections
           
 
Constructor Summary
SectionSegmentAnnotator()
           
 
Method Summary
 void initialize(org.apache.uima.UimaContext aContext)
           
 void process(org.apache.uima.jcas.JCas jCas)
          Entry point for processing.
 
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

sections

public HashMap<Integer,DocumentSection> sections
Constructor Detail

SectionSegmentAnnotator

public SectionSegmentAnnotator()
Method Detail

initialize

public void initialize(org.apache.uima.UimaContext aContext)
                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
Entry point for processing. Identify all the sections of the medical record

Specified by:
process in class org.apache.uima.analysis_component.JCasAnnotator_ImplBase
Throws:
org.apache.uima.analysis_engine.AnalysisEngineProcessException


Copyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.