public class XmlDetagger extends CasAnnotator_ImplBase
Modifier and Type | Field and Description |
---|---|
static String |
PARAM_TEXT_TAG
Name of optional configuration parameter that contains the name of an XML tag that appears in
the input file.
|
Constructor and Description |
---|
XmlDetagger() |
Modifier and Type | Method and Description |
---|---|
static AnalysisEngineDescription |
getDescription()
Parses and returns the descriptor for this Analysis Gnein.
|
static URL |
getDescriptorURL() |
void |
initialize(UimaContext aContext)
Performs any startup tasks required by this component.
|
void |
process(CAS aCAS)
Inputs a CAS to the AnalysisComponent.
|
void |
typeSystemInit(TypeSystem aTypeSystem)
Informs this annotator that the CAS TypeSystem has changed.
|
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
batchProcessComplete, collectionProcessComplete, destroy, getContext, getResultSpecification, reconfigure, setResultSpecification
public static final String PARAM_TEXT_TAG
public void initialize(UimaContext aContext) throws ResourceInitializationException
AnalysisComponent
The framework supplies this AnalysisComponent with a reference to the UimaContext
that
it will use, for example to access configuration settings or resources. This AnalysisComponent
should store a reference to its the UimaContext
for later use.
initialize
in interface AnalysisComponent
initialize
in class AnalysisComponent_ImplBase
aContext
- Provides access to services and resources managed by the framework. This includes
configuration parameters, logging, and access to external resources.ResourceInitializationException
- if this AnalysisComponent cannot initialize successfully.public void typeSystemInit(TypeSystem aTypeSystem) throws AnalysisEngineProcessException
CasAnnotator_ImplBase
AnalysisComponent_ImplBase.initialize(org.apache.uima.UimaContext)
, and will call
it again whenever the CAS TypeSystem changes.
In this method, the Annotator should use the TypeSystem
to resolve the names of Type
and Features to the actual Type
and
Feature
objects, which can then be used during processing.
typeSystemInit
in class CasAnnotator_ImplBase
aTypeSystem
- the new type system to use as input to your initializationAnalysisEngineProcessException
- if the provided type system is missing types or features required by this annotatorpublic void process(CAS aCAS) throws AnalysisEngineProcessException
CasAnnotator_ImplBase
process
in class CasAnnotator_ImplBase
aCAS
- A CAS that this AnalysisComponent should process.AnalysisEngineProcessException
- if a problem occurs during processingpublic static AnalysisEngineDescription getDescription() throws InvalidXMLException
InvalidXMLException
- if the descriptor is invalid or missingpublic static URL getDescriptorURL()
Copyright © 2016. All rights reserved.