public final class AnalysisEngineFactory extends Object
AnalysisEngineDescriptions
and AnalysisEngines
.Modifier and Type | Method and Description |
---|---|
static org.apache.uima.analysis_engine.AnalysisEngine |
createAggregate(org.apache.uima.analysis_engine.AnalysisEngineDescription desc)
Deprecated.
|
static org.apache.uima.analysis_engine.AnalysisEngine |
createAggregate(List<org.apache.uima.analysis_engine.AnalysisEngineDescription> analysisEngineDescriptions,
List<String> componentNames,
org.apache.uima.resource.metadata.TypePriorities typePriorities,
org.apache.uima.analysis_engine.metadata.SofaMapping[] sofaMappings)
Deprecated.
|
static org.apache.uima.analysis_engine.AnalysisEngine |
createAggregate(List<org.apache.uima.analysis_engine.AnalysisEngineDescription> analysisEngineDescriptions,
List<String> componentNames,
org.apache.uima.resource.metadata.TypePriorities typePriorities,
org.apache.uima.analysis_engine.metadata.SofaMapping[] sofaMappings,
org.apache.uima.flow.FlowControllerDescription flowControllerDescription)
|
static org.apache.uima.analysis_engine.AnalysisEngine |
createAggregate(List<Class<? extends org.apache.uima.analysis_component.AnalysisComponent>> componentClasses,
org.apache.uima.resource.metadata.TypeSystemDescription typeSystem,
org.apache.uima.resource.metadata.TypePriorities typePriorities,
org.apache.uima.analysis_engine.metadata.SofaMapping[] sofaMappings,
org.apache.uima.flow.FlowControllerDescription flowControllerDescription,
Object... configurationData)
|
static org.apache.uima.analysis_engine.AnalysisEngine |
createAggregate(List<Class<? extends org.apache.uima.analysis_component.AnalysisComponent>> componentClasses,
org.apache.uima.resource.metadata.TypeSystemDescription typeSystem,
org.apache.uima.resource.metadata.TypePriorities typePriorities,
org.apache.uima.analysis_engine.metadata.SofaMapping[] sofaMappings,
Object... configurationData)
|
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createAggregateDescription(org.apache.uima.analysis_engine.AnalysisEngineDescription... analysisEngineDescriptions)
Deprecated.
|
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createAggregateDescription(org.apache.uima.flow.FlowControllerDescription flowControllerDescription,
org.apache.uima.analysis_engine.AnalysisEngineDescription... analysisEngineDescriptions)
|
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createAggregateDescription(List<org.apache.uima.analysis_engine.AnalysisEngineDescription> analysisEngineDescriptions,
List<String> componentNames,
org.apache.uima.resource.metadata.TypePriorities typePriorities,
org.apache.uima.analysis_engine.metadata.SofaMapping[] sofaMappings,
org.apache.uima.flow.FlowControllerDescription flowControllerDescription)
|
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createAggregateDescription(List<Class<? extends org.apache.uima.analysis_component.AnalysisComponent>> componentClasses,
org.apache.uima.resource.metadata.TypeSystemDescription typeSystem,
org.apache.uima.resource.metadata.TypePriorities typePriorities,
org.apache.uima.analysis_engine.metadata.SofaMapping[] sofaMappings,
org.apache.uima.flow.FlowControllerDescription flowControllerDescription,
Object... configurationData)
|
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createAggregateDescription(List<Class<? extends org.apache.uima.analysis_component.AnalysisComponent>> componentClasses,
org.apache.uima.resource.metadata.TypeSystemDescription typeSystem,
org.apache.uima.resource.metadata.TypePriorities typePriorities,
org.apache.uima.analysis_engine.metadata.SofaMapping[] sofaMappings,
Object... configurationData)
|
static org.apache.uima.analysis_engine.AnalysisEngine |
createAnalysisEngine(org.apache.uima.analysis_engine.AnalysisEngineDescription analysisEngineDescription,
String viewName)
Deprecated.
|
static org.apache.uima.analysis_engine.AnalysisEngine |
createAnalysisEngine(String descriptorName,
Object... configurationData)
Deprecated.
|
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createAnalysisEngineDescription(String descriptorName,
Object... configurationData)
Deprecated.
|
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createAnalysisEngineDescriptionFromPath(String descriptorPath,
Object... configurationData)
Deprecated.
|
static org.apache.uima.analysis_engine.AnalysisEngine |
createAnalysisEngineFromPath(String descriptorPath,
Object... configurationData)
Deprecated.
|
static org.apache.uima.analysis_engine.AnalysisEngine |
createEngine(org.apache.uima.analysis_engine.AnalysisEngineDescription desc,
Object... configurationData)
Create and configure a primitive
AnalysisEngine . |
static org.apache.uima.analysis_engine.AnalysisEngine |
createEngine(org.apache.uima.analysis_engine.AnalysisEngineDescription analysisEngineDescription,
String viewName)
This method provides a convenient way to instantiate an AnalysisEngine where the default view
is mapped to the view name passed into the method.
|
static org.apache.uima.analysis_engine.AnalysisEngine |
createEngine(org.apache.uima.analysis_component.CasProcessor<? extends Exception> aCasAnnotator)
Create an analysis engine from a processor function.
|
static org.apache.uima.analysis_engine.AnalysisEngine |
createEngine(Class<? extends org.apache.uima.analysis_component.AnalysisComponent> componentClass,
Object... configurationData)
Create and configure a primitive
AnalysisEngine . |
static org.apache.uima.analysis_engine.AnalysisEngine |
createEngine(Class<? extends org.apache.uima.analysis_component.AnalysisComponent> componentClass,
org.apache.uima.resource.metadata.TypeSystemDescription typeSystem,
Object... configurationData)
Create and configure a primitive
AnalysisEngine . |
static org.apache.uima.analysis_engine.AnalysisEngine |
createEngine(Class<? extends org.apache.uima.analysis_component.AnalysisComponent> componentClass,
org.apache.uima.resource.metadata.TypeSystemDescription typeSystem,
String[] typePriorities,
Object... configurationData)
Create and configure a primitive
AnalysisEngine . |
static org.apache.uima.analysis_engine.AnalysisEngine |
createEngine(Class<? extends org.apache.uima.analysis_component.AnalysisComponent> componentClass,
org.apache.uima.resource.metadata.TypeSystemDescription typeSystem,
org.apache.uima.resource.metadata.TypePriorities typePriorities,
Object... configurationData)
Create and configure a primitive
AnalysisEngine . |
static org.apache.uima.analysis_engine.AnalysisEngine |
createEngine(org.apache.uima.analysis_component.JCasProcessor<? extends Exception> aJCasAnnotator)
Create an analysis engine from a processor function.
|
static org.apache.uima.analysis_engine.AnalysisEngine |
createEngine(List<org.apache.uima.analysis_engine.AnalysisEngineDescription> analysisEngineDescriptions,
List<String> componentNames,
org.apache.uima.resource.metadata.TypePriorities typePriorities,
org.apache.uima.analysis_engine.metadata.SofaMapping[] sofaMappings)
Create and configure an aggregate
AnalysisEngine from several component descriptions. |
static org.apache.uima.analysis_engine.AnalysisEngine |
createEngine(List<org.apache.uima.analysis_engine.AnalysisEngineDescription> analysisEngineDescriptions,
List<String> componentNames,
org.apache.uima.resource.metadata.TypePriorities typePriorities,
org.apache.uima.analysis_engine.metadata.SofaMapping[] sofaMappings,
org.apache.uima.flow.FlowControllerDescription flowControllerDescription)
Create and configure an aggregate
AnalysisEngine from several component descriptions. |
static org.apache.uima.analysis_engine.AnalysisEngine |
createEngine(List<Class<? extends org.apache.uima.analysis_component.AnalysisComponent>> componentClasses,
org.apache.uima.resource.metadata.TypeSystemDescription typeSystem,
org.apache.uima.resource.metadata.TypePriorities typePriorities,
org.apache.uima.analysis_engine.metadata.SofaMapping[] sofaMappings,
org.apache.uima.flow.FlowControllerDescription flowControllerDescription,
Object... configurationData)
Create and configure an aggregate
AnalysisEngine from several component classes. |
static org.apache.uima.analysis_engine.AnalysisEngine |
createEngine(List<Class<? extends org.apache.uima.analysis_component.AnalysisComponent>> componentClasses,
org.apache.uima.resource.metadata.TypeSystemDescription typeSystem,
org.apache.uima.resource.metadata.TypePriorities typePriorities,
org.apache.uima.analysis_engine.metadata.SofaMapping[] sofaMappings,
Object... configurationData)
Create and configure an aggregate
AnalysisEngine from several component classes. |
static org.apache.uima.analysis_engine.AnalysisEngine |
createEngine(String descriptorName,
Object... configurationData)
Get an AnalysisEngine from the name (Java-style, dotted) of an XML descriptor file, and a set
of configuration parameters.
|
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createEngineDescription(org.apache.uima.analysis_engine.AnalysisEngineDescription... analysisEngineDescriptions)
Create and configure an aggregate
AnalysisEngine from several component descriptions. |
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createEngineDescription(Class<? extends org.apache.uima.analysis_component.AnalysisComponent> componentClass,
Object... configurationData)
Create and configure a primitive
AnalysisEngine . |
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createEngineDescription(Class<? extends org.apache.uima.analysis_component.AnalysisComponent> componentClass,
org.apache.uima.resource.metadata.TypeSystemDescription typeSystem,
Object... configurationData)
Create and configure a primitive
AnalysisEngine . |
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createEngineDescription(Class<? extends org.apache.uima.analysis_component.AnalysisComponent> componentClass,
org.apache.uima.resource.metadata.TypeSystemDescription typeSystem,
org.apache.uima.resource.metadata.TypePriorities typePriorities,
org.apache.uima.resource.metadata.FsIndexCollection indexes,
org.apache.uima.resource.metadata.Capability[] capabilities,
org.apache.uima.resource.metadata.ConfigurationParameter[] configurationParameters,
Object[] configurationValues)
Create and configure a primitive
AnalysisEngine . |
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createEngineDescription(Class<? extends org.apache.uima.analysis_component.AnalysisComponent> componentClass,
org.apache.uima.resource.metadata.TypeSystemDescription typeSystem,
org.apache.uima.resource.metadata.TypePriorities typePriorities,
org.apache.uima.resource.metadata.FsIndexCollection indexes,
org.apache.uima.resource.metadata.Capability[] capabilities,
org.apache.uima.resource.metadata.ConfigurationParameter[] configurationParameters,
Object[] configurationValues,
Map<String,org.apache.uima.resource.ExternalResourceDescription> externalResources)
Create and configure a primitive
AnalysisEngine . |
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createEngineDescription(Class<? extends org.apache.uima.analysis_component.AnalysisComponent> componentClass,
org.apache.uima.resource.metadata.TypeSystemDescription typeSystem,
org.apache.uima.resource.metadata.TypePriorities typePriorities,
org.apache.uima.resource.metadata.FsIndexCollection indexes,
org.apache.uima.resource.metadata.Capability[] capabilities,
Object... configurationData)
Create and configure a primitive
AnalysisEngine . |
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createEngineDescription(Class<? extends org.apache.uima.analysis_component.AnalysisComponent> componentClass,
org.apache.uima.resource.metadata.TypeSystemDescription typeSystem,
org.apache.uima.resource.metadata.TypePriorities typePriorities,
Object... configurationData)
Create and configure a primitive
AnalysisEngine . |
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createEngineDescription(org.apache.uima.flow.FlowControllerDescription flowControllerDescription,
org.apache.uima.analysis_engine.AnalysisEngineDescription... analysisEngineDescriptions)
A simplified factory method for creating an aggregate description for a given flow controller
and a sequence of analysis engine descriptions
|
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createEngineDescription(List<org.apache.uima.analysis_engine.AnalysisEngineDescription> analysisEngineDescriptions,
List<String> componentNames,
org.apache.uima.resource.metadata.TypePriorities typePriorities,
org.apache.uima.analysis_engine.metadata.SofaMapping[] sofaMappings,
org.apache.uima.flow.FlowControllerDescription flowControllerDescription)
A factory method for creating an aggregate description.
|
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createEngineDescription(List<Class<? extends org.apache.uima.analysis_component.AnalysisComponent>> componentClasses,
org.apache.uima.resource.metadata.TypeSystemDescription typeSystem,
org.apache.uima.resource.metadata.TypePriorities typePriorities,
org.apache.uima.analysis_engine.metadata.SofaMapping[] sofaMappings,
org.apache.uima.flow.FlowControllerDescription flowControllerDescription,
Object... configurationData)
Create and configure an aggregate
AnalysisEngine from several component classes. |
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createEngineDescription(List<Class<? extends org.apache.uima.analysis_component.AnalysisComponent>> componentClasses,
org.apache.uima.resource.metadata.TypeSystemDescription typeSystem,
org.apache.uima.resource.metadata.TypePriorities typePriorities,
org.apache.uima.analysis_engine.metadata.SofaMapping[] sofaMappings,
Object... configurationData)
Create and configure an aggregate
AnalysisEngine from several component classes. |
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createEngineDescription(org.apache.uima.resource.PearSpecifier pearSpecifier,
Object... configurationData)
Get an
AnalysisEngineDescription from a PEAR and a set of configuration parameters. |
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createEngineDescription(String descriptorName,
Object... configurationData)
Provides a way to create an AnalysisEngineDescription using a descriptor file referenced by
name
|
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createEngineDescriptionFromPath(String descriptorPath,
Object... configurationData)
Get an
AnalysisEngineDescription from an XML descriptor file and a set of configuration
parameters. |
static org.apache.uima.analysis_engine.AnalysisEngine |
createEngineFromPath(String descriptorPath,
Object... configurationData)
Get an
AnalysisEngine from an XML descriptor file and a set of configuration
parameters. |
static org.apache.uima.analysis_engine.AnalysisEngine |
createPrimitive(org.apache.uima.analysis_engine.AnalysisEngineDescription desc,
Object... configurationData)
Deprecated.
|
static org.apache.uima.analysis_engine.AnalysisEngine |
createPrimitive(Class<? extends org.apache.uima.analysis_component.AnalysisComponent> componentClass,
Object... configurationData)
Deprecated.
|
static org.apache.uima.analysis_engine.AnalysisEngine |
createPrimitive(Class<? extends org.apache.uima.analysis_component.AnalysisComponent> componentClass,
org.apache.uima.resource.metadata.TypeSystemDescription typeSystem,
Object... configurationData)
Deprecated.
|
static org.apache.uima.analysis_engine.AnalysisEngine |
createPrimitive(Class<? extends org.apache.uima.analysis_component.AnalysisComponent> componentClass,
org.apache.uima.resource.metadata.TypeSystemDescription typeSystem,
String[] typePriorities,
Object... configurationData)
Deprecated.
|
static org.apache.uima.analysis_engine.AnalysisEngine |
createPrimitive(Class<? extends org.apache.uima.analysis_component.AnalysisComponent> componentClass,
org.apache.uima.resource.metadata.TypeSystemDescription typeSystem,
org.apache.uima.resource.metadata.TypePriorities typePriorities,
Object... configurationData)
|
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createPrimitiveDescription(Class<? extends org.apache.uima.analysis_component.AnalysisComponent> componentClass,
Object... configurationData)
Deprecated.
|
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createPrimitiveDescription(Class<? extends org.apache.uima.analysis_component.AnalysisComponent> componentClass,
org.apache.uima.resource.metadata.TypeSystemDescription typeSystem,
Object... configurationData)
Deprecated.
|
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createPrimitiveDescription(Class<? extends org.apache.uima.analysis_component.AnalysisComponent> componentClass,
org.apache.uima.resource.metadata.TypeSystemDescription typeSystem,
org.apache.uima.resource.metadata.TypePriorities typePriorities,
org.apache.uima.resource.metadata.FsIndexCollection indexes,
org.apache.uima.resource.metadata.Capability[] capabilities,
org.apache.uima.resource.metadata.ConfigurationParameter[] configurationParameters,
Object[] configurationValues)
|
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createPrimitiveDescription(Class<? extends org.apache.uima.analysis_component.AnalysisComponent> componentClass,
org.apache.uima.resource.metadata.TypeSystemDescription typeSystem,
org.apache.uima.resource.metadata.TypePriorities typePriorities,
org.apache.uima.resource.metadata.FsIndexCollection indexes,
org.apache.uima.resource.metadata.Capability[] capabilities,
org.apache.uima.resource.metadata.ConfigurationParameter[] configurationParameters,
Object[] configurationValues,
Map<String,org.apache.uima.resource.ExternalResourceDescription> externalResources)
|
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createPrimitiveDescription(Class<? extends org.apache.uima.analysis_component.AnalysisComponent> componentClass,
org.apache.uima.resource.metadata.TypeSystemDescription typeSystem,
org.apache.uima.resource.metadata.TypePriorities typePriorities,
org.apache.uima.resource.metadata.FsIndexCollection indexes,
org.apache.uima.resource.metadata.Capability[] capabilities,
Object... configurationData)
|
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
createPrimitiveDescription(Class<? extends org.apache.uima.analysis_component.AnalysisComponent> componentClass,
org.apache.uima.resource.metadata.TypeSystemDescription typeSystem,
org.apache.uima.resource.metadata.TypePriorities typePriorities,
Object... configurationData)
|
public static org.apache.uima.analysis_engine.AnalysisEngine createEngine(String descriptorName, Object... configurationData) throws org.apache.uima.util.InvalidXMLException, IOException, org.apache.uima.resource.ResourceInitializationException
descriptorName
- The fully qualified, Java-style, dotted name of the XML descriptor file.configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters.AnalysisEngine
created from the XML descriptor and the configuration
parameters.IOException
- if an I/O error occursorg.apache.uima.util.InvalidXMLException
- if the input XML is not valid or does not specify a valid ResourceSpecifier
org.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.@Deprecated public static org.apache.uima.analysis_engine.AnalysisEngine createAnalysisEngine(String descriptorName, Object... configurationData) throws org.apache.uima.util.InvalidXMLException, IOException, org.apache.uima.resource.ResourceInitializationException
createEngine(String, Object...)
descriptorName
- The fully qualified, Java-style, dotted name of the XML descriptor file.configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters.AnalysisEngine
created from the XML descriptor and the configuration
parameters.IOException
- if an I/O error occursorg.apache.uima.util.InvalidXMLException
- if the input XML is not valid or does not specify a valid ResourceSpecifier
org.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.public static org.apache.uima.analysis_engine.AnalysisEngine createEngine(org.apache.uima.analysis_engine.AnalysisEngineDescription analysisEngineDescription, String viewName) throws org.apache.uima.resource.ResourceInitializationException
analysisEngineDescription
- the analysis engine description from which the engine is instantiatedviewName
- the view name to map the default view toorg.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.AggregateBuilder
@Deprecated public static org.apache.uima.analysis_engine.AnalysisEngine createAnalysisEngine(org.apache.uima.analysis_engine.AnalysisEngineDescription analysisEngineDescription, String viewName) throws org.apache.uima.resource.ResourceInitializationException
createEngine(AnalysisEngineDescription, String)
analysisEngineDescription
- the analysis engine description from which the engine is instantiatedviewName
- the view name to map the default view toorg.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.AggregateBuilder
public static org.apache.uima.analysis_engine.AnalysisEngine createEngine(org.apache.uima.analysis_engine.AnalysisEngineDescription desc, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException
AnalysisEngine
.desc
- the descriptor to create the analysis engine from.configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters.AnalysisEngine
created from the specified component class and initialized
with the configuration parameters.org.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.@Deprecated public static org.apache.uima.analysis_engine.AnalysisEngine createAggregate(org.apache.uima.analysis_engine.AnalysisEngineDescription desc) throws org.apache.uima.resource.ResourceInitializationException
createEngine(AnalysisEngineDescription, Object...)
AnalysisEngine
.desc
- the descriptor to create the analysis engine from.AnalysisEngine
created from the specified component class and initialized
with the configuration parameters.org.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.@Deprecated public static org.apache.uima.analysis_engine.AnalysisEngine createPrimitive(org.apache.uima.analysis_engine.AnalysisEngineDescription desc, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException
createEngine(AnalysisEngineDescription, Object...)
AnalysisEngine
.desc
- the descriptor to create the analysis engine from.configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters.AnalysisEngine
created from the specified component class and initialized
with the configuration parameters.org.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.public static org.apache.uima.analysis_engine.AnalysisEngine createEngine(Class<? extends org.apache.uima.analysis_component.AnalysisComponent> componentClass, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException
AnalysisEngine
. The type system is detected
automatically using TypeSystemDescriptionFactory.createTypeSystemDescription()
. Type
priorities are detected automatically using
TypePrioritiesFactory.createTypePriorities()
. Indexes are detected automatically using
FsIndexFactory.createFsIndexCollection()
.componentClass
- a class that extends AnalysisComponent
e.g. via
JCasAnnotator_ImplBase
configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters.AnalysisEngine
created from the specified component class and initialized
with the configuration parameters.org.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.@Deprecated public static org.apache.uima.analysis_engine.AnalysisEngine createPrimitive(Class<? extends org.apache.uima.analysis_component.AnalysisComponent> componentClass, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException
createEngine(Class, Object...)
AnalysisEngine
. The type system is detected
automatically using TypeSystemDescriptionFactory.createTypeSystemDescription()
. Type
priorities are detected automatically using
TypePrioritiesFactory.createTypePriorities()
. Indexes are detected automatically using
FsIndexFactory.createFsIndexCollection()
.componentClass
- a class that extends AnalysisComponent
e.g. via
JCasAnnotator_ImplBase
configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters.AnalysisEngine
created from the specified component class and initialized
with the configuration parameters.org.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.public static org.apache.uima.analysis_engine.AnalysisEngine createEngine(Class<? extends org.apache.uima.analysis_component.AnalysisComponent> componentClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException
AnalysisEngine
.componentClass
- a class that extends AnalysisComponent
e.g. via
JCasAnnotator_ImplBase
typeSystem
- A description of the types (may be null).configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters.AnalysisEngine
created from the specified component class and initialized
with the configuration parameters.org.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.@Deprecated public static org.apache.uima.analysis_engine.AnalysisEngine createPrimitive(Class<? extends org.apache.uima.analysis_component.AnalysisComponent> componentClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException
createEngine(Class, TypeSystemDescription, Object...)
AnalysisEngine
.componentClass
- a class that extends AnalysisComponent
e.g. via
JCasAnnotator_ImplBase
typeSystem
- A description of the types (may be null).configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters.AnalysisEngine
created from the specified component class and initialized
with the configuration parameters.org.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.public static org.apache.uima.analysis_engine.AnalysisEngine createEngine(Class<? extends org.apache.uima.analysis_component.AnalysisComponent> componentClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, String[] typePriorities, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException
AnalysisEngine
.componentClass
- a class that extends AnalysisComponent
e.g. via
JCasAnnotator_ImplBase
typeSystem
- A description of the types (may be null).typePriorities
- The type priorities as an array of type names (may be null).configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters.AnalysisEngine
created from the specified component class and initialized
with the configuration parameters.org.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.@Deprecated public static org.apache.uima.analysis_engine.AnalysisEngine createPrimitive(Class<? extends org.apache.uima.analysis_component.AnalysisComponent> componentClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, String[] typePriorities, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException
createEngine(Class, TypeSystemDescription, String[], Object...)
AnalysisEngine
.componentClass
- a class that extends AnalysisComponent
e.g. via
JCasAnnotator_ImplBase
typeSystem
- A description of the types (may be null).typePriorities
- The type priorities as an array of type names (may be null).configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters.AnalysisEngine
created from the specified component class and initialized
with the configuration parameters.org.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.public static org.apache.uima.analysis_engine.AnalysisEngine createEngine(Class<? extends org.apache.uima.analysis_component.AnalysisComponent> componentClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, org.apache.uima.resource.metadata.TypePriorities typePriorities, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException
AnalysisEngine
.componentClass
- a class that extends AnalysisComponent
e.g. via
JCasAnnotator_ImplBase
typeSystem
- A description of the types (may be null).typePriorities
- The type priorities (may be null).configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters.AnalysisEngine
created from the specified component class and initialized
with the configuration parameters.org.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.@Deprecated public static org.apache.uima.analysis_engine.AnalysisEngine createPrimitive(Class<? extends org.apache.uima.analysis_component.AnalysisComponent> componentClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, org.apache.uima.resource.metadata.TypePriorities typePriorities, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException
AnalysisEngine
.componentClass
- a class that extends AnalysisComponent
e.g. via
JCasAnnotator_ImplBase
typeSystem
- A description of the types (may be null).typePriorities
- The type priorities (may be null).configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters.AnalysisEngine
created from the specified component class and initialized
with the configuration parameters.org.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.public static org.apache.uima.analysis_engine.AnalysisEngine createEngine(List<Class<? extends org.apache.uima.analysis_component.AnalysisComponent>> componentClasses, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, org.apache.uima.resource.metadata.TypePriorities typePriorities, org.apache.uima.analysis_engine.metadata.SofaMapping[] sofaMappings, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException
AnalysisEngine
from several component classes.componentClasses
- a list of class that extend AnalysisComponent
e.g. via
JCasAnnotator_ImplBase
typeSystem
- A description of the types (may be null).typePriorities
- The type priorities (may be null).sofaMappings
- The SofA mappings (may be null).configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters.AnalysisEngine
created from the specified component class and initialized
with the configuration parameters.org.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.@Deprecated public static org.apache.uima.analysis_engine.AnalysisEngine createAggregate(List<Class<? extends org.apache.uima.analysis_component.AnalysisComponent>> componentClasses, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, org.apache.uima.resource.metadata.TypePriorities typePriorities, org.apache.uima.analysis_engine.metadata.SofaMapping[] sofaMappings, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException
AnalysisEngine
from several component classes.componentClasses
- a list of class that extend AnalysisComponent
e.g. via
JCasAnnotator_ImplBase
typeSystem
- A description of the types (may be null).typePriorities
- The type priorities (may be null).sofaMappings
- The SofA mappings (may be null).configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters.AnalysisEngine
created from the specified component class and initialized
with the configuration parameters.org.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.public static org.apache.uima.analysis_engine.AnalysisEngine createEngine(List<Class<? extends org.apache.uima.analysis_component.AnalysisComponent>> componentClasses, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, org.apache.uima.resource.metadata.TypePriorities typePriorities, org.apache.uima.analysis_engine.metadata.SofaMapping[] sofaMappings, org.apache.uima.flow.FlowControllerDescription flowControllerDescription, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException
AnalysisEngine
from several component classes.componentClasses
- a list of class that extend AnalysisComponent
e.g. via
JCasAnnotator_ImplBase
typeSystem
- A description of the types (may be null).typePriorities
- The type priorities (may be null).sofaMappings
- The SofA mappings (may be null).flowControllerDescription
- the flow controller description to be used by this aggregate (may be null).configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters.AnalysisEngine
created from the specified component class and initialized
with the configuration parameters.org.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.@Deprecated public static org.apache.uima.analysis_engine.AnalysisEngine createAggregate(List<Class<? extends org.apache.uima.analysis_component.AnalysisComponent>> componentClasses, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, org.apache.uima.resource.metadata.TypePriorities typePriorities, org.apache.uima.analysis_engine.metadata.SofaMapping[] sofaMappings, org.apache.uima.flow.FlowControllerDescription flowControllerDescription, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException
createEngine(List, TypeSystemDescription, TypePriorities, SofaMapping[], FlowControllerDescription, Object...)
AnalysisEngine
from several component classes.componentClasses
- a list of class that extend AnalysisComponent
e.g. via
JCasAnnotator_ImplBase
typeSystem
- A description of the types (may be null).typePriorities
- The type priorities (may be null).sofaMappings
- The SofA mappings (may be null).flowControllerDescription
- the flow controller description to be used by this aggregate (may be null).configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters.AnalysisEngine
created from the specified component class and initialized
with the configuration parameters.org.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.public static org.apache.uima.analysis_engine.AnalysisEngine createEngine(List<org.apache.uima.analysis_engine.AnalysisEngineDescription> analysisEngineDescriptions, List<String> componentNames, org.apache.uima.resource.metadata.TypePriorities typePriorities, org.apache.uima.analysis_engine.metadata.SofaMapping[] sofaMappings) throws org.apache.uima.resource.ResourceInitializationException
AnalysisEngine
from several component descriptions.analysisEngineDescriptions
- a list of analysis engine descriptions from which the aggregate engine is instantiatedcomponentNames
- a list of names for the analysis engines in the aggregate. There must be exactly one
name for each analysis engine, given in the same order as the descriptions.typePriorities
- The type priorities (may be null).sofaMappings
- The SofA mappings (may be null).AnalysisEngine
created from the specified component class and initialized
with the configuration parameters.org.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.@Deprecated public static org.apache.uima.analysis_engine.AnalysisEngine createAggregate(List<org.apache.uima.analysis_engine.AnalysisEngineDescription> analysisEngineDescriptions, List<String> componentNames, org.apache.uima.resource.metadata.TypePriorities typePriorities, org.apache.uima.analysis_engine.metadata.SofaMapping[] sofaMappings) throws org.apache.uima.resource.ResourceInitializationException
createEngine(List, List, TypePriorities, SofaMapping[])
AnalysisEngine
from several component descriptions.analysisEngineDescriptions
- a list of analysis engine descriptions from which the aggregate engine is instantiatedcomponentNames
- a list of names for the analysis engines in the aggregate. There must be exactly one
name for each analysis engine, given in the same order as the descriptions.typePriorities
- The type priorities (may be null).sofaMappings
- The SofA mappings (may be null).AnalysisEngine
created from the specified component class and initialized
with the configuration parameters.org.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.public static org.apache.uima.analysis_engine.AnalysisEngine createEngine(List<org.apache.uima.analysis_engine.AnalysisEngineDescription> analysisEngineDescriptions, List<String> componentNames, org.apache.uima.resource.metadata.TypePriorities typePriorities, org.apache.uima.analysis_engine.metadata.SofaMapping[] sofaMappings, org.apache.uima.flow.FlowControllerDescription flowControllerDescription) throws org.apache.uima.resource.ResourceInitializationException
AnalysisEngine
from several component descriptions.analysisEngineDescriptions
- a list of analysis engine descriptions from which the aggregate engine is instantiatedcomponentNames
- a list of names for the analysis engines in the aggregate. There must be exactly one
name for each analysis engine, given in the same order as the descriptions.typePriorities
- The type priorities (may be null).sofaMappings
- The SofA mappings (may be null).flowControllerDescription
- the flow controller description to be used by this aggregate (may be null).AnalysisEngine
created from the specified component class and initialized
with the configuration parameters.org.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.@Deprecated public static org.apache.uima.analysis_engine.AnalysisEngine createAggregate(List<org.apache.uima.analysis_engine.AnalysisEngineDescription> analysisEngineDescriptions, List<String> componentNames, org.apache.uima.resource.metadata.TypePriorities typePriorities, org.apache.uima.analysis_engine.metadata.SofaMapping[] sofaMappings, org.apache.uima.flow.FlowControllerDescription flowControllerDescription) throws org.apache.uima.resource.ResourceInitializationException
AnalysisEngine
from several component descriptions.analysisEngineDescriptions
- a list of analysis engine descriptions from which the aggregate engine is instantiatedcomponentNames
- a list of names for the analysis engines in the aggregate. There must be exactly one
name for each analysis engine, given in the same order as the descriptions.typePriorities
- The type priorities (may be null).sofaMappings
- The SofA mappings (may be null).flowControllerDescription
- the flow controller description to be used by this aggregate (may be null).AnalysisEngine
created from the specified component class and initialized
with the configuration parameters.org.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.public static org.apache.uima.analysis_engine.AnalysisEngine createEngineFromPath(String descriptorPath, Object... configurationData) throws org.apache.uima.util.InvalidXMLException, IOException, org.apache.uima.resource.ResourceInitializationException
AnalysisEngine
from an XML descriptor file and a set of configuration
parameters.descriptorPath
- The path to the XML descriptor file.configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters.AnalysisEngine
created from the XML descriptor and the configuration
parameters.IOException
- if an I/O error occursorg.apache.uima.util.InvalidXMLException
- if the input XML is not valid or does not specify a valid ResourceSpecifier
org.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.@Deprecated public static org.apache.uima.analysis_engine.AnalysisEngine createAnalysisEngineFromPath(String descriptorPath, Object... configurationData) throws org.apache.uima.util.InvalidXMLException, IOException, org.apache.uima.resource.ResourceInitializationException
createEngineFromPath(String, Object...)
AnalysisEngine
from an XML descriptor file and a set of configuration
parameters.descriptorPath
- The path to the XML descriptor file.configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters.AnalysisEngine
created from the XML descriptor and the configuration
parameters.IOException
- if an I/O error occursorg.apache.uima.util.InvalidXMLException
- if the input XML is not valid or does not specify a valid ResourceSpecifier
org.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.public static org.apache.uima.analysis_engine.AnalysisEngineDescription createEngineDescriptionFromPath(String descriptorPath, Object... configurationData) throws org.apache.uima.util.InvalidXMLException, IOException
AnalysisEngineDescription
from an XML descriptor file and a set of configuration
parameters.descriptorPath
- The path to the XML descriptor file.configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters.AnalysisEngineDescription
created from the XML descriptor and the
configuration parameters.IOException
- if an I/O error occursorg.apache.uima.util.InvalidXMLException
- if the input XML is not valid or does not specify a valid ResourceSpecifier
public static org.apache.uima.analysis_engine.AnalysisEngineDescription createEngineDescription(org.apache.uima.resource.PearSpecifier pearSpecifier, Object... configurationData) throws org.apache.uima.util.InvalidXMLException, IOException
AnalysisEngineDescription
from a PEAR and a set of configuration parameters.pearSpecifier
- The PEAR specifier.configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters.AnalysisEngineDescription
created from the XML descriptor and the
configuration parameters.IOException
- if an I/O error occursorg.apache.uima.util.InvalidXMLException
- if the input XML is not valid or does not specify a valid ResourceSpecifier
@Deprecated public static org.apache.uima.analysis_engine.AnalysisEngineDescription createAnalysisEngineDescriptionFromPath(String descriptorPath, Object... configurationData) throws org.apache.uima.util.InvalidXMLException, IOException
createEngineDescriptionFromPath(String, Object...)
AnalysisEngineDescription
from an XML descriptor file and a set of configuration
parameters.descriptorPath
- The path to the XML descriptor file.configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters.AnalysisEngineDescription
created from the XML descriptor and the
configuration parameters.IOException
- if an I/O error occursorg.apache.uima.util.InvalidXMLException
- if the input XML is not valid or does not specify a valid ResourceSpecifier
public static org.apache.uima.analysis_engine.AnalysisEngineDescription createEngineDescription(String descriptorName, Object... configurationData) throws org.apache.uima.util.InvalidXMLException, IOException
descriptorName
- The fully qualified, Java-style, dotted name of the XML descriptor file.configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters. Will override
configuration parameter settings in the descriptor fileIOException
- if an I/O error occursorg.apache.uima.util.InvalidXMLException
- if the input XML is not valid or does not specify a valid ResourceSpecifier
@Deprecated public static org.apache.uima.analysis_engine.AnalysisEngineDescription createAnalysisEngineDescription(String descriptorName, Object... configurationData) throws org.apache.uima.util.InvalidXMLException, IOException
createEngineDescription(String, Object...)
descriptorName
- The fully qualified, Java-style, dotted name of the XML descriptor file.configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters. Will override
configuration parameter settings in the descriptor fileIOException
- if an I/O error occursorg.apache.uima.util.InvalidXMLException
- if the input XML is not valid or does not specify a valid ResourceSpecifier
public static org.apache.uima.analysis_engine.AnalysisEngineDescription createEngineDescription(Class<? extends org.apache.uima.analysis_component.AnalysisComponent> componentClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException
AnalysisEngine
.componentClass
- a class that extends AnalysisComponent
e.g. via
JCasAnnotator_ImplBase
typeSystem
- A description of the types (may be null).configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters.org.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.@Deprecated public static org.apache.uima.analysis_engine.AnalysisEngineDescription createPrimitiveDescription(Class<? extends org.apache.uima.analysis_component.AnalysisComponent> componentClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException
createEngineDescription(Class, TypeSystemDescription, Object...)
AnalysisEngine
.componentClass
- a class that extends AnalysisComponent
e.g. via
JCasAnnotator_ImplBase
typeSystem
- A description of the types (may be null).configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters.org.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.public static org.apache.uima.analysis_engine.AnalysisEngineDescription createEngineDescription(Class<? extends org.apache.uima.analysis_component.AnalysisComponent> componentClass, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException
AnalysisEngine
. The type system is detected
automatically using TypeSystemDescriptionFactory.createTypeSystemDescription()
. Type
priorities are detected automatically using
TypePrioritiesFactory.createTypePriorities()
. Indexes are detected automatically using
FsIndexFactory.createFsIndexCollection()
.componentClass
- a class that extends AnalysisComponent
e.g. via
JCasAnnotator_ImplBase
configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters.org.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.@Deprecated public static org.apache.uima.analysis_engine.AnalysisEngineDescription createPrimitiveDescription(Class<? extends org.apache.uima.analysis_component.AnalysisComponent> componentClass, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException
createEngineDescription(Class, Object...)
AnalysisEngine
. The type system is detected
automatically using TypeSystemDescriptionFactory.createTypeSystemDescription()
. Type
priorities are detected automatically using
TypePrioritiesFactory.createTypePriorities()
. Indexes are detected automatically using
FsIndexFactory.createFsIndexCollection()
.componentClass
- a class that extends AnalysisComponent
e.g. via
JCasAnnotator_ImplBase
configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters.org.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.public static org.apache.uima.analysis_engine.AnalysisEngineDescription createEngineDescription(Class<? extends org.apache.uima.analysis_component.AnalysisComponent> componentClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, org.apache.uima.resource.metadata.TypePriorities typePriorities, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException
AnalysisEngine
.componentClass
- a class that extends AnalysisComponent
e.g. via
JCasAnnotator_ImplBase
typeSystem
- A description of the types (may be null).typePriorities
- The type priorities (may be null).configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters.org.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.@Deprecated public static org.apache.uima.analysis_engine.AnalysisEngineDescription createPrimitiveDescription(Class<? extends org.apache.uima.analysis_component.AnalysisComponent> componentClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, org.apache.uima.resource.metadata.TypePriorities typePriorities, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException
AnalysisEngine
.componentClass
- a class that extends AnalysisComponent
e.g. via
JCasAnnotator_ImplBase
typeSystem
- A description of the types (may be null).typePriorities
- The type priorities (may be null).configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters.org.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.public static org.apache.uima.analysis_engine.AnalysisEngineDescription createEngineDescription(Class<? extends org.apache.uima.analysis_component.AnalysisComponent> componentClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, org.apache.uima.resource.metadata.TypePriorities typePriorities, org.apache.uima.resource.metadata.FsIndexCollection indexes, org.apache.uima.resource.metadata.Capability[] capabilities, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException
AnalysisEngine
.componentClass
- a class that extends AnalysisComponent
e.g. via
JCasAnnotator_ImplBase
typeSystem
- A description of the types (may be null).typePriorities
- The type priorities (may be null).indexes
- the Feature Structure Index collection used by this analysis engine to iterate over
annotations in the CAS
. If this is not null explicitly,
any indexes declared via FsIndexCollection
in
the class are ignored.capabilities
- the operations the component can perform in terms of consumed and produced types, sofa
names, and languages. If this is set explicitly here, any capabilities declared via
SofaCapability
or TypeCapability
in the class are ignored.configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters. In addition to
parameter names, external resource keys can also be specified. The value has to be an
ExternalResourceDescription
in that case.org.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.@Deprecated public static org.apache.uima.analysis_engine.AnalysisEngineDescription createPrimitiveDescription(Class<? extends org.apache.uima.analysis_component.AnalysisComponent> componentClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, org.apache.uima.resource.metadata.TypePriorities typePriorities, org.apache.uima.resource.metadata.FsIndexCollection indexes, org.apache.uima.resource.metadata.Capability[] capabilities, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException
createEngineDescription(Class, TypeSystemDescription, TypePriorities, FsIndexCollection, Capability[], Object...)
AnalysisEngine
.componentClass
- a class that extends AnalysisComponent
e.g. via
JCasAnnotator_ImplBase
typeSystem
- A description of the types (may be null).typePriorities
- The type priorities (may be null).indexes
- the Feature Structure Index collection used by this analysis engine to iterate over
annotations in the CAS
. If this is not null explicitly,
any indexes declared via FsIndexCollection
in
the class are ignored.capabilities
- the operations the component can perform in terms of consumed and produced types, sofa
names, and languages. If this is set explicitly here, any capabilities declared via
SofaCapability
or TypeCapability
in the class are ignored.configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters. In addition to
parameter names, external resource keys can also be specified. The value has to be an
ExternalResourceDescription
in that case.org.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.public static org.apache.uima.analysis_engine.AnalysisEngineDescription createEngineDescription(Class<? extends org.apache.uima.analysis_component.AnalysisComponent> componentClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, org.apache.uima.resource.metadata.TypePriorities typePriorities, org.apache.uima.resource.metadata.FsIndexCollection indexes, org.apache.uima.resource.metadata.Capability[] capabilities, org.apache.uima.resource.metadata.ConfigurationParameter[] configurationParameters, Object[] configurationValues) throws org.apache.uima.resource.ResourceInitializationException
AnalysisEngine
.componentClass
- a class that extends AnalysisComponent
e.g. via
JCasAnnotator_ImplBase
typeSystem
- A description of the types (may be null).typePriorities
- The type priorities (may be null).indexes
- the Feature Structure Index collection used by this analysis engine to iterate over
annotations in the CAS
. If this is not null explicitly,
any indexes declared via FsIndexCollection
in
the class are ignored.capabilities
- the operations the component can perform in terms of consumed and produced types, sofa
names, and languages. If this is set explicitly here, any capabilities declared via
SofaCapability
or TypeCapability
in the class are ignored.configurationParameters
- the configuration parameter declarations.configurationValues
- the configuration parameter values.org.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.@Deprecated public static org.apache.uima.analysis_engine.AnalysisEngineDescription createPrimitiveDescription(Class<? extends org.apache.uima.analysis_component.AnalysisComponent> componentClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, org.apache.uima.resource.metadata.TypePriorities typePriorities, org.apache.uima.resource.metadata.FsIndexCollection indexes, org.apache.uima.resource.metadata.Capability[] capabilities, org.apache.uima.resource.metadata.ConfigurationParameter[] configurationParameters, Object[] configurationValues) throws org.apache.uima.resource.ResourceInitializationException
createEngineDescription(Class, TypeSystemDescription, TypePriorities, FsIndexCollection, Capability[], ConfigurationParameter[], Object[])
AnalysisEngine
.componentClass
- a class that extends AnalysisComponent
e.g. via
JCasAnnotator_ImplBase
typeSystem
- A description of the types (may be null).typePriorities
- The type priorities (may be null).indexes
- the Feature Structure Index collection used by this analysis engine to iterate over
annotations in the CAS
. If this is not null explicitly,
any indexes declared via FsIndexCollection
in
the class are ignored.capabilities
- the operations the component can perform in terms of consumed and produced types, sofa
names, and languages. If this is set explicitly here, any capabilities declared via
SofaCapability
or TypeCapability
in the class are ignored.configurationParameters
- the configuration parameter declarations.configurationValues
- the configuration parameter values.org.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.public static org.apache.uima.analysis_engine.AnalysisEngineDescription createEngineDescription(Class<? extends org.apache.uima.analysis_component.AnalysisComponent> componentClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, org.apache.uima.resource.metadata.TypePriorities typePriorities, org.apache.uima.resource.metadata.FsIndexCollection indexes, org.apache.uima.resource.metadata.Capability[] capabilities, org.apache.uima.resource.metadata.ConfigurationParameter[] configurationParameters, Object[] configurationValues, Map<String,org.apache.uima.resource.ExternalResourceDescription> externalResources) throws org.apache.uima.resource.ResourceInitializationException
AnalysisEngine
.componentClass
- a class that extends AnalysisComponent
e.g. via
JCasAnnotator_ImplBase
typeSystem
- A description of the types (may be null).typePriorities
- The type priorities (may be null).indexes
- the Feature Structure Index collection used by this analysis engine to iterate over
annotations in the CAS
. If this is set explicitly here,
any indexes declared via FsIndexCollection
in
the class are ignored.capabilities
- the operations the component can perform in terms of consumed and produced types, sofa
names, and languages. If this is set explicitly here, any capabilities declared via
SofaCapability
or TypeCapability
in the class are ignored.configurationParameters
- the configuration parameter declarations.configurationValues
- the configuration parameter values.externalResources
- external resources to bind to the analysis engine. (may be null)org.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.@Deprecated public static org.apache.uima.analysis_engine.AnalysisEngineDescription createPrimitiveDescription(Class<? extends org.apache.uima.analysis_component.AnalysisComponent> componentClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, org.apache.uima.resource.metadata.TypePriorities typePriorities, org.apache.uima.resource.metadata.FsIndexCollection indexes, org.apache.uima.resource.metadata.Capability[] capabilities, org.apache.uima.resource.metadata.ConfigurationParameter[] configurationParameters, Object[] configurationValues, Map<String,org.apache.uima.resource.ExternalResourceDescription> externalResources) throws org.apache.uima.resource.ResourceInitializationException
createEngineDescription(Class, TypeSystemDescription, TypePriorities, FsIndexCollection, Capability[], ConfigurationParameter[], Object[], Map)
AnalysisEngine
.componentClass
- a class that extends AnalysisComponent
e.g. via
JCasAnnotator_ImplBase
typeSystem
- A description of the types (may be null).typePriorities
- The type priorities (may be null).indexes
- the Feature Structure Index collection used by this analysis engine to iterate over
annotations in the CAS
. If this is set explicitly here,
any indexes declared via FsIndexCollection
in
the class are ignored.capabilities
- the operations the component can perform in terms of consumed and produced types, sofa
names, and languages. If this is set explicitly here, any capabilities declared via
SofaCapability
or TypeCapability
in the class are ignored.configurationParameters
- the configuration parameter declarations.configurationValues
- the configuration parameter values.externalResources
- external resources to bind to the analysis engine. (may be null)org.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.public static org.apache.uima.analysis_engine.AnalysisEngineDescription createEngineDescription(List<Class<? extends org.apache.uima.analysis_component.AnalysisComponent>> componentClasses, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, org.apache.uima.resource.metadata.TypePriorities typePriorities, org.apache.uima.analysis_engine.metadata.SofaMapping[] sofaMappings, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException
AnalysisEngine
from several component classes.componentClasses
- a list of class that extend AnalysisComponent
e.g. via
JCasAnnotator_ImplBase
typeSystem
- A description of the types (may be null).typePriorities
- The type priorities (may be null).sofaMappings
- The SofA mappings (may be null).configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters.org.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.@Deprecated public static org.apache.uima.analysis_engine.AnalysisEngineDescription createAggregateDescription(List<Class<? extends org.apache.uima.analysis_component.AnalysisComponent>> componentClasses, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, org.apache.uima.resource.metadata.TypePriorities typePriorities, org.apache.uima.analysis_engine.metadata.SofaMapping[] sofaMappings, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException
createEngineDescription(List, TypeSystemDescription, TypePriorities, SofaMapping[], Object...)
AnalysisEngine
from several component classes.componentClasses
- a list of class that extend AnalysisComponent
e.g. via
JCasAnnotator_ImplBase
typeSystem
- A description of the types (may be null).typePriorities
- The type priorities (may be null).sofaMappings
- The SofA mappings (may be null).configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters.org.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.public static org.apache.uima.analysis_engine.AnalysisEngineDescription createEngineDescription(org.apache.uima.analysis_engine.AnalysisEngineDescription... analysisEngineDescriptions) throws org.apache.uima.resource.ResourceInitializationException
AnalysisEngine
from several component descriptions.analysisEngineDescriptions
- a list of analysis engine descriptions from which the aggregate engine is instantiatedorg.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.@Deprecated public static org.apache.uima.analysis_engine.AnalysisEngineDescription createAggregateDescription(org.apache.uima.analysis_engine.AnalysisEngineDescription... analysisEngineDescriptions) throws org.apache.uima.resource.ResourceInitializationException
createEngineDescription(AnalysisEngineDescription...)
AnalysisEngine
from several component descriptions.analysisEngineDescriptions
- a list of analysis engine descriptions from which the aggregate engine is instantiatedorg.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.public static org.apache.uima.analysis_engine.AnalysisEngineDescription createEngineDescription(List<Class<? extends org.apache.uima.analysis_component.AnalysisComponent>> componentClasses, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, org.apache.uima.resource.metadata.TypePriorities typePriorities, org.apache.uima.analysis_engine.metadata.SofaMapping[] sofaMappings, org.apache.uima.flow.FlowControllerDescription flowControllerDescription, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException
AnalysisEngine
from several component classes.componentClasses
- a list of class that extend AnalysisComponent
e.g. via
JCasAnnotator_ImplBase
typeSystem
- A description of the types (may be null).typePriorities
- The type priorities (may be null).sofaMappings
- The SofA mappings (may be null).flowControllerDescription
- the flow controller description to be used by this aggregate (may be null).configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters.org.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.@Deprecated public static org.apache.uima.analysis_engine.AnalysisEngineDescription createAggregateDescription(List<Class<? extends org.apache.uima.analysis_component.AnalysisComponent>> componentClasses, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, org.apache.uima.resource.metadata.TypePriorities typePriorities, org.apache.uima.analysis_engine.metadata.SofaMapping[] sofaMappings, org.apache.uima.flow.FlowControllerDescription flowControllerDescription, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException
createEngineDescription(List, TypeSystemDescription, TypePriorities, SofaMapping[], FlowControllerDescription, Object...)
AnalysisEngine
from several component classes.componentClasses
- a list of class that extend AnalysisComponent
e.g. via
JCasAnnotator_ImplBase
typeSystem
- A description of the types (may be null).typePriorities
- The type priorities (may be null).sofaMappings
- The SofA mappings (may be null).flowControllerDescription
- the flow controller description to be used by this aggregate (may be null).configurationData
- Any additional configuration parameters to be set. These should be supplied as (name,
value) pairs, so there should always be an even number of parameters.org.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.public static org.apache.uima.analysis_engine.AnalysisEngineDescription createEngineDescription(org.apache.uima.flow.FlowControllerDescription flowControllerDescription, org.apache.uima.analysis_engine.AnalysisEngineDescription... analysisEngineDescriptions) throws org.apache.uima.resource.ResourceInitializationException
flowControllerDescription
- the flow controller description to be used by this aggregate (may be null).analysisEngineDescriptions
- a list of analysis engine descriptions from which the aggregate engine is instantiatedorg.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.@Deprecated public static org.apache.uima.analysis_engine.AnalysisEngineDescription createAggregateDescription(org.apache.uima.flow.FlowControllerDescription flowControllerDescription, org.apache.uima.analysis_engine.AnalysisEngineDescription... analysisEngineDescriptions) throws org.apache.uima.resource.ResourceInitializationException
flowControllerDescription
- the flow controller description to be used by this aggregate (may be null).analysisEngineDescriptions
- a list of analysis engine descriptions from which the aggregate engine is instantiatedorg.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.public static org.apache.uima.analysis_engine.AnalysisEngineDescription createEngineDescription(List<org.apache.uima.analysis_engine.AnalysisEngineDescription> analysisEngineDescriptions, List<String> componentNames, org.apache.uima.resource.metadata.TypePriorities typePriorities, org.apache.uima.analysis_engine.metadata.SofaMapping[] sofaMappings, org.apache.uima.flow.FlowControllerDescription flowControllerDescription) throws org.apache.uima.resource.ResourceInitializationException
analysisEngineDescriptions
- list of analysis engine descriptions.componentNames
- list of component names - must be one name per description!typePriorities
- The type priorities (may be null).sofaMappings
- The SofA mappings (may be null).flowControllerDescription
- the flow controller description to be used by this aggregate (may be null).org.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.@Deprecated public static org.apache.uima.analysis_engine.AnalysisEngineDescription createAggregateDescription(List<org.apache.uima.analysis_engine.AnalysisEngineDescription> analysisEngineDescriptions, List<String> componentNames, org.apache.uima.resource.metadata.TypePriorities typePriorities, org.apache.uima.analysis_engine.metadata.SofaMapping[] sofaMappings, org.apache.uima.flow.FlowControllerDescription flowControllerDescription) throws org.apache.uima.resource.ResourceInitializationException
analysisEngineDescriptions
- list of analysis engine descriptions.componentNames
- list of component names - must be one name per description!typePriorities
- The type priorities (may be null).sofaMappings
- The SofA mappings (may be null).flowControllerDescription
- the flow controller description to be used by this aggregate (may be null).org.apache.uima.resource.ResourceInitializationException
- if a failure occurred during production of the resource.public static org.apache.uima.analysis_engine.AnalysisEngine createEngine(org.apache.uima.analysis_component.JCasProcessor<? extends Exception> aJCasAnnotator) throws org.apache.uima.resource.ResourceInitializationException
aJCasAnnotator
- the processor function.org.apache.uima.resource.ResourceInitializationException
- of there was a problem creating the engine.public static org.apache.uima.analysis_engine.AnalysisEngine createEngine(org.apache.uima.analysis_component.CasProcessor<? extends Exception> aCasAnnotator) throws org.apache.uima.resource.ResourceInitializationException
aCasAnnotator
- the processor function.org.apache.uima.resource.ResourceInitializationException
- of there was a problem creating the engine.Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.