anl.aida.ae.gate
Class GateAnnotator

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.CasAnnotator_ImplBase
              extended by anl.aida.ae.gate.GateAnnotator
All Implemented Interfaces:
org.apache.uima.analysis_component.AnalysisComponent

public class GateAnnotator
extends org.apache.uima.analysis_component.CasAnnotator_ImplBase

Class provides Gate annotation services.


Field Summary
private  BuilderFactory builderFactory
           
static java.lang.String GATE_APP_FILE
           
static java.lang.String GATE_HOME
           
static java.lang.String GATE_LOG_PROPS
           
private  gate.CorpusController gateApp
           
private  gate.Corpus gateCorpus
           
private  java.util.Map<java.lang.String,java.util.Map<java.lang.Integer,org.apache.uima.cas.FeatureStructure>> indexMap
           
private  java.util.List<InputAnnotationBuilder> inputBuilders
           
static java.lang.String MAPPING_FILE
           
private static java.lang.String MESSAGE_DIGEST
           
private  java.util.List<OutputAnnotationBuilder> outputBuilders
           
 
Constructor Summary
GateAnnotator()
           
 
Method Summary
private  void createInputAnnotations(org.apache.uima.cas.CAS cas, gate.Document doc)
           
private  void createOutputAnnotations(org.apache.uima.cas.CAS cas, gate.Document doc)
           
 void destroy()
          Free the GATE objects created by this annotator.
 void initialize(org.apache.uima.UimaContext context)
           
 void process(org.apache.uima.cas.CAS cas)
           
 void typeSystemInit(org.apache.uima.cas.TypeSystem typeSystem)
           
 
Methods inherited from class org.apache.uima.analysis_component.CasAnnotator_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, getContext, getResultSpecification, reconfigure, setResultSpecification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAPPING_FILE

public static final java.lang.String MAPPING_FILE
See Also:
Constant Field Values

GATE_APP_FILE

public static final java.lang.String GATE_APP_FILE
See Also:
Constant Field Values

GATE_HOME

public static final java.lang.String GATE_HOME
See Also:
Constant Field Values

GATE_LOG_PROPS

public static final java.lang.String GATE_LOG_PROPS
See Also:
Constant Field Values

MESSAGE_DIGEST

private static final java.lang.String MESSAGE_DIGEST
See Also:
Constant Field Values

inputBuilders

private java.util.List<InputAnnotationBuilder> inputBuilders

outputBuilders

private java.util.List<OutputAnnotationBuilder> outputBuilders

indexMap

private java.util.Map<java.lang.String,java.util.Map<java.lang.Integer,org.apache.uima.cas.FeatureStructure>> indexMap

gateCorpus

private gate.Corpus gateCorpus

builderFactory

private BuilderFactory builderFactory

gateApp

private gate.CorpusController gateApp
Constructor Detail

GateAnnotator

public GateAnnotator()
Method Detail

initialize

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

typeSystemInit

public void typeSystemInit(org.apache.uima.cas.TypeSystem typeSystem)
                    throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
Overrides:
typeSystemInit in class org.apache.uima.analysis_component.CasAnnotator_ImplBase
Throws:
org.apache.uima.analysis_engine.AnalysisEngineProcessException

createInputAnnotations

private void createInputAnnotations(org.apache.uima.cas.CAS cas,
                                    gate.Document doc)
                             throws UGMappingException
Throws:
UGMappingException

createOutputAnnotations

private void createOutputAnnotations(org.apache.uima.cas.CAS cas,
                                     gate.Document doc)
                              throws UGMappingException
Throws:
UGMappingException

process

public void process(org.apache.uima.cas.CAS cas)
             throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
Specified by:
process in class org.apache.uima.analysis_component.CasAnnotator_ImplBase
Throws:
org.apache.uima.analysis_engine.AnalysisEngineProcessException

destroy

public void destroy()
Free the GATE objects created by this annotator.

Specified by:
destroy in interface org.apache.uima.analysis_component.AnalysisComponent
Overrides:
destroy in class org.apache.uima.analysis_component.AnalysisComponent_ImplBase