org.apache.uima.annotator.regex.impl
Class RegExAnnotator
java.lang.Object
org.apache.uima.analysis_component.AnalysisComponent_ImplBase
org.apache.uima.analysis_component.Annotator_ImplBase
org.apache.uima.analysis_component.CasAnnotator_ImplBase
org.apache.uima.annotator.regex.impl.RegExAnnotator
- All Implemented Interfaces:
- org.apache.uima.analysis_component.AnalysisComponent
public class RegExAnnotator
- extends org.apache.uima.analysis_component.CasAnnotator_ImplBase
Main RegEx annotator implementation class.
Method Summary |
void |
initialize(org.apache.uima.UimaContext aContext)
Performs any startup tasks required by this annotator. |
void |
process(org.apache.uima.cas.CAS aCAS)
Invokes this annotator's analysis logic. |
void |
typeSystemInit(org.apache.uima.cas.TypeSystem aTypeSystem)
Acquires references to CAS Type and Feature objects that are later used during the
process(CAS) method. |
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, destroy, getContext, getResultSpecification, reconfigure, setResultSpecification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MESSAGE_DIGEST
public static final java.lang.String MESSAGE_DIGEST
- See Also:
- Constant Field Values
REGEX_CONCEPTS_FILES
public static final java.lang.String REGEX_CONCEPTS_FILES
- See Also:
- Constant Field Values
PATH_SEPARATOR
public static final java.lang.String PATH_SEPARATOR
RegExAnnotator
public RegExAnnotator()
initialize
public void initialize(org.apache.uima.UimaContext aContext)
throws org.apache.uima.resource.ResourceInitializationException
- Performs any startup tasks required by this annotator. This implementation reads the
configuration parameters and compiles the regular expressions.
- 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 aTypeSystem)
throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
- Acquires references to CAS Type and Feature objects that are later used during the
process(CAS)
method.
- Overrides:
typeSystemInit
in class org.apache.uima.analysis_component.CasAnnotator_ImplBase
- Throws:
org.apache.uima.analysis_engine.AnalysisEngineProcessException
process
public void process(org.apache.uima.cas.CAS aCAS)
throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
- Invokes this annotator's analysis logic. This annotator uses the java regular expression
package to find annotations using the regular expressions defined by its configuration
parameters.
- Specified by:
process
in class org.apache.uima.analysis_component.CasAnnotator_ImplBase
- Parameters:
aCAS
- the CAS to process
- Throws:
org.apache.uima.analysis_engine.AnalysisEngineProcessException
- if a failure occurs during processing.- See Also:
CasAnnotator_ImplBase.process(CAS)
Copyright © 2011. All Rights Reserved.