Interface CasDataInitializer
-
- All Superinterfaces:
ConfigurableResource,Resource
- All Known Implementing Classes:
CasDataInitializer_ImplBase
@Deprecated public interface CasDataInitializer extends ConfigurableResource
Deprecated.As of v2.0, CAS Initializers are deprecated. A component that performs an operation like HTML detagging should instead be implemented as a "multi-Sofa" annotator. See org.apache.uima.examples.XmlDetagger for an example.A component that takes an Object (for text analysis applications, this will often be a String) and creates aCasData.An example of a
CasDataInitializerwould be a component that takes an HTML document and populates a CasData with the plain (detagged) text as well as document structure annotations that were inferred from the locations of certain HTML tags (paragraphs and headings, for example).
-
-
Field Summary
-
Fields inherited from interface org.apache.uima.resource.Resource
PARAM_AGGREGATE_SOFA_MAPPINGS, PARAM_CONFIG_MANAGER, PARAM_CONFIG_PARAM_SETTINGS, PARAM_EXTERNAL_OVERRIDE_SETTINGS, PARAM_PERFORMANCE_TUNING_SETTINGS, PARAM_RESOURCE_MANAGER, PARAM_UIMA_CONTEXT
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description ProcessingResourceMetaDatagetCasInitializerMetaData()Deprecated.Gets the metadata that describes thisCasDataInitializer.CasDatainitializeCas(java.lang.Object aObj)Deprecated.Reads content and metadata from an Object and creates aCasData.-
Methods inherited from interface org.apache.uima.resource.ConfigurableResource
getConfigParameterValue, getConfigParameterValue, reconfigure, setConfigParameterValue, setConfigParameterValue
-
Methods inherited from interface org.apache.uima.resource.Resource
destroy, getLogger, getMetaData, getResourceManager, getUimaContext, getUimaContextAdmin, initialize, setLogger
-
-
-
-
Method Detail
-
initializeCas
CasData initializeCas(java.lang.Object aObj) throws CollectionException, java.io.IOException
Deprecated.Reads content and metadata from an Object and creates aCasData.- Parameters:
aObj- the Object to process- Returns:
- CasData corresponding to the Object
- Throws:
CollectionException- if an error occurs during initialization of the CASjava.io.IOException- if an I/O failure occurs
-
getCasInitializerMetaData
ProcessingResourceMetaData getCasInitializerMetaData()
Deprecated.Gets the metadata that describes thisCasDataInitializer.- Returns:
- an object containing all metadata for this CasDataInitializer
-
-