Package org.apache.uima.fit.factory
Class AnalysisEngineFactory
java.lang.Object
org.apache.uima.fit.factory.AnalysisEngineFactory
A collection of static methods for creating UIMA
AnalysisEngineDescriptions
and AnalysisEngines
.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic AnalysisEngine
createAggregate
(List<Class<? extends AnalysisComponent>> componentClasses, TypeSystemDescription typeSystem, TypePriorities typePriorities, SofaMapping[] sofaMappings, Object... configurationData) Deprecated.static AnalysisEngine
createAggregate
(List<Class<? extends AnalysisComponent>> componentClasses, TypeSystemDescription typeSystem, TypePriorities typePriorities, SofaMapping[] sofaMappings, FlowControllerDescription flowControllerDescription, Object... configurationData) static AnalysisEngine
createAggregate
(List<AnalysisEngineDescription> analysisEngineDescriptions, List<String> componentNames, TypePriorities typePriorities, SofaMapping[] sofaMappings) Deprecated.static AnalysisEngine
createAggregate
(List<AnalysisEngineDescription> analysisEngineDescriptions, List<String> componentNames, TypePriorities typePriorities, SofaMapping[] sofaMappings, FlowControllerDescription flowControllerDescription) static AnalysisEngine
Deprecated.static AnalysisEngineDescription
createAggregateDescription
(List<Class<? extends AnalysisComponent>> componentClasses, TypeSystemDescription typeSystem, TypePriorities typePriorities, SofaMapping[] sofaMappings, Object... configurationData) static AnalysisEngineDescription
createAggregateDescription
(List<Class<? extends AnalysisComponent>> componentClasses, TypeSystemDescription typeSystem, TypePriorities typePriorities, SofaMapping[] sofaMappings, FlowControllerDescription flowControllerDescription, Object... configurationData) static AnalysisEngineDescription
createAggregateDescription
(List<AnalysisEngineDescription> analysisEngineDescriptions, List<String> componentNames, TypePriorities typePriorities, SofaMapping[] sofaMappings, FlowControllerDescription flowControllerDescription) static AnalysisEngineDescription
createAggregateDescription
(AnalysisEngineDescription... analysisEngineDescriptions) Deprecated.static AnalysisEngineDescription
createAggregateDescription
(FlowControllerDescription flowControllerDescription, AnalysisEngineDescription... analysisEngineDescriptions) static AnalysisEngine
createAnalysisEngine
(String descriptorName, Object... configurationData) Deprecated.static AnalysisEngine
createAnalysisEngine
(AnalysisEngineDescription analysisEngineDescription, String viewName) Deprecated.static AnalysisEngineDescription
createAnalysisEngineDescription
(String descriptorName, Object... configurationData) Deprecated.static AnalysisEngineDescription
createAnalysisEngineDescriptionFromPath
(String descriptorPath, Object... configurationData) Deprecated.static AnalysisEngine
createAnalysisEngineFromPath
(String descriptorPath, Object... configurationData) Deprecated.static AnalysisEngine
createEngine
(Class<? extends AnalysisComponent> componentClass, Object... configurationData) Create and configure a primitiveAnalysisEngine
.static AnalysisEngine
createEngine
(Class<? extends AnalysisComponent> componentClass, TypeSystemDescription typeSystem, Object... configurationData) Create and configure a primitiveAnalysisEngine
.static AnalysisEngine
createEngine
(Class<? extends AnalysisComponent> componentClass, TypeSystemDescription typeSystem, String[] typePriorities, Object... configurationData) Create and configure a primitiveAnalysisEngine
.static AnalysisEngine
createEngine
(Class<? extends AnalysisComponent> componentClass, TypeSystemDescription typeSystem, TypePriorities typePriorities, Object... configurationData) Create and configure a primitiveAnalysisEngine
.static 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 AnalysisEngine
createEngine
(List<Class<? extends AnalysisComponent>> componentClasses, TypeSystemDescription typeSystem, TypePriorities typePriorities, SofaMapping[] sofaMappings, Object... configurationData) Create and configure an aggregateAnalysisEngine
from several component classes.static AnalysisEngine
createEngine
(List<Class<? extends AnalysisComponent>> componentClasses, TypeSystemDescription typeSystem, TypePriorities typePriorities, SofaMapping[] sofaMappings, FlowControllerDescription flowControllerDescription, Object... configurationData) Create and configure an aggregateAnalysisEngine
from several component classes.static AnalysisEngine
createEngine
(List<AnalysisEngineDescription> analysisEngineDescriptions, List<String> componentNames, TypePriorities typePriorities, SofaMapping[] sofaMappings) Create and configure an aggregateAnalysisEngine
from several component descriptions.static AnalysisEngine
createEngine
(List<AnalysisEngineDescription> analysisEngineDescriptions, List<String> componentNames, TypePriorities typePriorities, SofaMapping[] sofaMappings, FlowControllerDescription flowControllerDescription) Create and configure an aggregateAnalysisEngine
from several component descriptions.static AnalysisEngine
createEngine
(CasProcessor<? extends Exception> aCasAnnotator) Create an analysis engine from a processor function.static AnalysisEngine
createEngine
(JCasProcessor<? extends Exception> aJCasAnnotator) Create an analysis engine from a processor function.static AnalysisEngine
createEngine
(AnalysisEngineDescription desc, Object... configurationData) Create and configure a primitiveAnalysisEngine
.static AnalysisEngine
createEngine
(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 AnalysisEngineDescription
createEngineDescription
(Class<? extends AnalysisComponent> componentClass, Object... configurationData) Create and configure a primitiveAnalysisEngine
.static AnalysisEngineDescription
createEngineDescription
(Class<? extends AnalysisComponent> componentClass, TypeSystemDescription typeSystem, Object... configurationData) Create and configure a primitiveAnalysisEngine
.static AnalysisEngineDescription
createEngineDescription
(Class<? extends AnalysisComponent> componentClass, TypeSystemDescription typeSystem, TypePriorities typePriorities, Object... configurationData) Create and configure a primitiveAnalysisEngine
.static AnalysisEngineDescription
createEngineDescription
(Class<? extends AnalysisComponent> componentClass, TypeSystemDescription typeSystem, TypePriorities typePriorities, FsIndexCollection indexes, Capability[] capabilities, Object... configurationData) Create and configure a primitiveAnalysisEngine
.static AnalysisEngineDescription
createEngineDescription
(Class<? extends AnalysisComponent> componentClass, TypeSystemDescription typeSystem, TypePriorities typePriorities, FsIndexCollection indexes, Capability[] capabilities, ConfigurationParameter[] configurationParameters, Object[] configurationValues) Create and configure a primitiveAnalysisEngine
.static AnalysisEngineDescription
createEngineDescription
(Class<? extends AnalysisComponent> componentClass, TypeSystemDescription typeSystem, TypePriorities typePriorities, FsIndexCollection indexes, Capability[] capabilities, ConfigurationParameter[] configurationParameters, Object[] configurationValues, Map<String, ExternalResourceDescription> externalResources) Create and configure a primitiveAnalysisEngine
.static AnalysisEngineDescription
createEngineDescription
(String descriptorName, Object... configurationData) Provides a way to create an AnalysisEngineDescription using a descriptor file referenced by namestatic AnalysisEngineDescription
createEngineDescription
(List<Class<? extends AnalysisComponent>> componentClasses, TypeSystemDescription typeSystem, TypePriorities typePriorities, SofaMapping[] sofaMappings, Object... configurationData) Create and configure an aggregateAnalysisEngine
from several component classes.static AnalysisEngineDescription
createEngineDescription
(List<Class<? extends AnalysisComponent>> componentClasses, TypeSystemDescription typeSystem, TypePriorities typePriorities, SofaMapping[] sofaMappings, FlowControllerDescription flowControllerDescription, Object... configurationData) Create and configure an aggregateAnalysisEngine
from several component classes.static AnalysisEngineDescription
createEngineDescription
(List<AnalysisEngineDescription> analysisEngineDescriptions, List<String> componentNames, TypePriorities typePriorities, SofaMapping[] sofaMappings, FlowControllerDescription flowControllerDescription) A factory method for creating an aggregate description.static AnalysisEngineDescription
createEngineDescription
(AnalysisEngineDescription... analysisEngineDescriptions) Create and configure an aggregateAnalysisEngine
from several component descriptions.static AnalysisEngineDescription
createEngineDescription
(FlowControllerDescription flowControllerDescription, AnalysisEngineDescription... analysisEngineDescriptions) A simplified factory method for creating an aggregate description for a given flow controller and a sequence of analysis engine descriptionsstatic AnalysisEngineDescription
createEngineDescription
(PearSpecifier pearSpecifier, Object... configurationData) Get anAnalysisEngineDescription
from a PEAR and a set of configuration parameters.static AnalysisEngineDescription
createEngineDescriptionFromPath
(String descriptorPath, Object... configurationData) Get anAnalysisEngineDescription
from an XML descriptor file and a set of configuration parameters.static AnalysisEngine
createEngineFromPath
(String descriptorPath, Object... configurationData) Get anAnalysisEngine
from an XML descriptor file and a set of configuration parameters.static AnalysisEngine
createPrimitive
(Class<? extends AnalysisComponent> componentClass, Object... configurationData) Deprecated.static AnalysisEngine
createPrimitive
(Class<? extends AnalysisComponent> componentClass, TypeSystemDescription typeSystem, Object... configurationData) Deprecated.static AnalysisEngine
createPrimitive
(Class<? extends AnalysisComponent> componentClass, TypeSystemDescription typeSystem, String[] typePriorities, Object... configurationData) Deprecated.static AnalysisEngine
createPrimitive
(Class<? extends AnalysisComponent> componentClass, TypeSystemDescription typeSystem, TypePriorities typePriorities, Object... configurationData) static AnalysisEngine
createPrimitive
(AnalysisEngineDescription desc, Object... configurationData) Deprecated.static AnalysisEngineDescription
createPrimitiveDescription
(Class<? extends AnalysisComponent> componentClass, Object... configurationData) Deprecated.static AnalysisEngineDescription
createPrimitiveDescription
(Class<? extends AnalysisComponent> componentClass, TypeSystemDescription typeSystem, Object... configurationData) Deprecated.static AnalysisEngineDescription
createPrimitiveDescription
(Class<? extends AnalysisComponent> componentClass, TypeSystemDescription typeSystem, TypePriorities typePriorities, Object... configurationData) static AnalysisEngineDescription
createPrimitiveDescription
(Class<? extends AnalysisComponent> componentClass, TypeSystemDescription typeSystem, TypePriorities typePriorities, FsIndexCollection indexes, Capability[] capabilities, Object... configurationData) static AnalysisEngineDescription
createPrimitiveDescription
(Class<? extends AnalysisComponent> componentClass, TypeSystemDescription typeSystem, TypePriorities typePriorities, FsIndexCollection indexes, Capability[] capabilities, ConfigurationParameter[] configurationParameters, Object[] configurationValues) static AnalysisEngineDescription
createPrimitiveDescription
(Class<? extends AnalysisComponent> componentClass, TypeSystemDescription typeSystem, TypePriorities typePriorities, FsIndexCollection indexes, Capability[] capabilities, ConfigurationParameter[] configurationParameters, Object[] configurationValues, Map<String, ExternalResourceDescription> externalResources)
-
Method Details
-
createEngine
public static AnalysisEngine createEngine(String descriptorName, Object... configurationData) throws InvalidXMLException, IOException, ResourceInitializationException Get an AnalysisEngine from the name (Java-style, dotted) of an XML descriptor file, and a set of configuration parameters.- Parameters:
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.- Returns:
- the
AnalysisEngine
created from the XML descriptor and the configuration parameters. - Throws:
IOException
- if an I/O error occursInvalidXMLException
- if the input XML is not valid or does not specify a validResourceSpecifier
ResourceInitializationException
- if a failure occurred during production of the resource.- See Also:
-
createAnalysisEngine
@Deprecated public static AnalysisEngine createAnalysisEngine(String descriptorName, Object... configurationData) throws InvalidXMLException, IOException, ResourceInitializationException Deprecated.Get an AnalysisEngine from the name (Java-style, dotted) of an XML descriptor file, and a set of configuration parameters.- Parameters:
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.- Returns:
- the
AnalysisEngine
created from the XML descriptor and the configuration parameters. - Throws:
IOException
- if an I/O error occursInvalidXMLException
- if the input XML is not valid or does not specify a validResourceSpecifier
ResourceInitializationException
- if a failure occurred during production of the resource.- See Also:
-
createEngine
public static AnalysisEngine createEngine(AnalysisEngineDescription analysisEngineDescription, String viewName) throws ResourceInitializationException This method provides a convenient way to instantiate an AnalysisEngine where the default view is mapped to the view name passed into the method.- Parameters:
analysisEngineDescription
- the analysis engine description from which the engine is instantiatedviewName
- the view name to map the default view to- Returns:
- an aggregate analysis engine consisting of a single component whose default view is mapped to the the view named by viewName.
- Throws:
ResourceInitializationException
- if a failure occurred during production of the resource.- See Also:
-
createAnalysisEngine
@Deprecated public static AnalysisEngine createAnalysisEngine(AnalysisEngineDescription analysisEngineDescription, String viewName) throws ResourceInitializationException Deprecated.This method provides a convenient way to instantiate an AnalysisEngine where the default view is mapped to the view name passed into the method.- Parameters:
analysisEngineDescription
- the analysis engine description from which the engine is instantiatedviewName
- the view name to map the default view to- Returns:
- an aggregate analysis engine consisting of a single component whose default view is mapped to the the view named by viewName.
- Throws:
ResourceInitializationException
- if a failure occurred during production of the resource.- See Also:
-
createEngine
public static AnalysisEngine createEngine(AnalysisEngineDescription desc, Object... configurationData) throws ResourceInitializationException Create and configure a primitiveAnalysisEngine
.- Parameters:
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.- Returns:
- an
AnalysisEngine
created from the specified component class and initialized with the configuration parameters. - Throws:
ResourceInitializationException
- if a failure occurred during production of the resource.- See Also:
-
createAggregate
@Deprecated public static AnalysisEngine createAggregate(AnalysisEngineDescription desc) throws ResourceInitializationException Deprecated.Create an aggregateAnalysisEngine
.- Parameters:
desc
- the descriptor to create the analysis engine from.- Returns:
- an
AnalysisEngine
created from the specified component class and initialized with the configuration parameters. - Throws:
ResourceInitializationException
- if a failure occurred during production of the resource.- See Also:
-
createPrimitive
@Deprecated public static AnalysisEngine createPrimitive(AnalysisEngineDescription desc, Object... configurationData) throws ResourceInitializationException Deprecated.Create and configure a primitiveAnalysisEngine
.- Parameters:
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.- Returns:
- an
AnalysisEngine
created from the specified component class and initialized with the configuration parameters. - Throws:
ResourceInitializationException
- if a failure occurred during production of the resource.- See Also:
-
createEngine
public static AnalysisEngine createEngine(Class<? extends AnalysisComponent> componentClass, Object... configurationData) throws ResourceInitializationException Create and configure a primitiveAnalysisEngine
. The type system is detected automatically usingTypeSystemDescriptionFactory.createTypeSystemDescription()
. Type priorities are detected automatically usingTypePrioritiesFactory.createTypePriorities()
. Indexes are detected automatically usingFsIndexFactory.createFsIndexCollection()
.- Parameters:
componentClass
- a class that extendsAnalysisComponent
e.g. viaJCasAnnotator_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.- Returns:
- an
AnalysisEngine
created from the specified component class and initialized with the configuration parameters. - Throws:
ResourceInitializationException
- if a failure occurred during production of the resource.- See Also:
-
createPrimitive
@Deprecated public static AnalysisEngine createPrimitive(Class<? extends AnalysisComponent> componentClass, Object... configurationData) throws ResourceInitializationException Deprecated.Create and configure a primitiveAnalysisEngine
. The type system is detected automatically usingTypeSystemDescriptionFactory.createTypeSystemDescription()
. Type priorities are detected automatically usingTypePrioritiesFactory.createTypePriorities()
. Indexes are detected automatically usingFsIndexFactory.createFsIndexCollection()
.- Parameters:
componentClass
- a class that extendsAnalysisComponent
e.g. viaJCasAnnotator_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.- Returns:
- an
AnalysisEngine
created from the specified component class and initialized with the configuration parameters. - Throws:
ResourceInitializationException
- if a failure occurred during production of the resource.- See Also:
-
createEngine
public static AnalysisEngine createEngine(Class<? extends AnalysisComponent> componentClass, TypeSystemDescription typeSystem, Object... configurationData) throws ResourceInitializationException Create and configure a primitiveAnalysisEngine
.- Parameters:
componentClass
- a class that extendsAnalysisComponent
e.g. viaJCasAnnotator_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.- Returns:
- an
AnalysisEngine
created from the specified component class and initialized with the configuration parameters. - Throws:
ResourceInitializationException
- if a failure occurred during production of the resource.- See Also:
-
createPrimitive
@Deprecated public static AnalysisEngine createPrimitive(Class<? extends AnalysisComponent> componentClass, TypeSystemDescription typeSystem, Object... configurationData) throws ResourceInitializationException Deprecated.Create and configure a primitiveAnalysisEngine
.- Parameters:
componentClass
- a class that extendsAnalysisComponent
e.g. viaJCasAnnotator_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.- Returns:
- an
AnalysisEngine
created from the specified component class and initialized with the configuration parameters. - Throws:
ResourceInitializationException
- if a failure occurred during production of the resource.- See Also:
-
createEngine
public static AnalysisEngine createEngine(Class<? extends AnalysisComponent> componentClass, TypeSystemDescription typeSystem, String[] typePriorities, Object... configurationData) throws ResourceInitializationException Create and configure a primitiveAnalysisEngine
.- Parameters:
componentClass
- a class that extendsAnalysisComponent
e.g. viaJCasAnnotator_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.- Returns:
- an
AnalysisEngine
created from the specified component class and initialized with the configuration parameters. - Throws:
ResourceInitializationException
- if a failure occurred during production of the resource.- See Also:
-
createPrimitive
@Deprecated public static AnalysisEngine createPrimitive(Class<? extends AnalysisComponent> componentClass, TypeSystemDescription typeSystem, String[] typePriorities, Object... configurationData) throws ResourceInitializationException Deprecated.Create and configure a primitiveAnalysisEngine
.- Parameters:
componentClass
- a class that extendsAnalysisComponent
e.g. viaJCasAnnotator_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.- Returns:
- an
AnalysisEngine
created from the specified component class and initialized with the configuration parameters. - Throws:
ResourceInitializationException
- if a failure occurred during production of the resource.- See Also:
-
createEngine
public static AnalysisEngine createEngine(Class<? extends AnalysisComponent> componentClass, TypeSystemDescription typeSystem, TypePriorities typePriorities, Object... configurationData) throws ResourceInitializationException Create and configure a primitiveAnalysisEngine
.- Parameters:
componentClass
- a class that extendsAnalysisComponent
e.g. viaJCasAnnotator_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.- Returns:
- an
AnalysisEngine
created from the specified component class and initialized with the configuration parameters. - Throws:
ResourceInitializationException
- if a failure occurred during production of the resource.- See Also:
-
createPrimitive
@Deprecated public static AnalysisEngine createPrimitive(Class<? extends AnalysisComponent> componentClass, TypeSystemDescription typeSystem, TypePriorities typePriorities, Object... configurationData) throws ResourceInitializationException Create and configure a primitiveAnalysisEngine
.- Parameters:
componentClass
- a class that extendsAnalysisComponent
e.g. viaJCasAnnotator_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.- Returns:
- an
AnalysisEngine
created from the specified component class and initialized with the configuration parameters. - Throws:
ResourceInitializationException
- if a failure occurred during production of the resource.- See Also:
-
createEngine
public static AnalysisEngine createEngine(List<Class<? extends AnalysisComponent>> componentClasses, TypeSystemDescription typeSystem, TypePriorities typePriorities, SofaMapping[] sofaMappings, Object... configurationData) throws ResourceInitializationException Create and configure an aggregateAnalysisEngine
from several component classes.- Parameters:
componentClasses
- a list of class that extendAnalysisComponent
e.g. viaJCasAnnotator_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.- Returns:
- an
AnalysisEngine
created from the specified component class and initialized with the configuration parameters. - Throws:
ResourceInitializationException
- if a failure occurred during production of the resource.- See Also:
-
createAggregate
@Deprecated public static AnalysisEngine createAggregate(List<Class<? extends AnalysisComponent>> componentClasses, TypeSystemDescription typeSystem, TypePriorities typePriorities, SofaMapping[] sofaMappings, Object... configurationData) throws ResourceInitializationException Create and configure an aggregateAnalysisEngine
from several component classes.- Parameters:
componentClasses
- a list of class that extendAnalysisComponent
e.g. viaJCasAnnotator_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.- Returns:
- an
AnalysisEngine
created from the specified component class and initialized with the configuration parameters. - Throws:
ResourceInitializationException
- if a failure occurred during production of the resource.- See Also:
-
createEngine
public static AnalysisEngine createEngine(List<Class<? extends AnalysisComponent>> componentClasses, TypeSystemDescription typeSystem, TypePriorities typePriorities, SofaMapping[] sofaMappings, FlowControllerDescription flowControllerDescription, Object... configurationData) throws ResourceInitializationException Create and configure an aggregateAnalysisEngine
from several component classes.- Parameters:
componentClasses
- a list of class that extendAnalysisComponent
e.g. viaJCasAnnotator_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.- Returns:
- an
AnalysisEngine
created from the specified component class and initialized with the configuration parameters. - Throws:
ResourceInitializationException
- if a failure occurred during production of the resource.- See Also:
-
createAggregate
@Deprecated public static AnalysisEngine createAggregate(List<Class<? extends AnalysisComponent>> componentClasses, TypeSystemDescription typeSystem, TypePriorities typePriorities, SofaMapping[] sofaMappings, FlowControllerDescription flowControllerDescription, Object... configurationData) throws ResourceInitializationException Deprecated.Create and configure an aggregateAnalysisEngine
from several component classes.- Parameters:
componentClasses
- a list of class that extendAnalysisComponent
e.g. viaJCasAnnotator_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.- Returns:
- an
AnalysisEngine
created from the specified component class and initialized with the configuration parameters. - Throws:
ResourceInitializationException
- if a failure occurred during production of the resource.- See Also:
-
createEngine
public static AnalysisEngine createEngine(List<AnalysisEngineDescription> analysisEngineDescriptions, List<String> componentNames, TypePriorities typePriorities, SofaMapping[] sofaMappings) throws ResourceInitializationException Create and configure an aggregateAnalysisEngine
from several component descriptions.- Parameters:
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).- Returns:
- an
AnalysisEngine
created from the specified component class and initialized with the configuration parameters. - Throws:
ResourceInitializationException
- if a failure occurred during production of the resource.- See Also:
-
createAggregate
@Deprecated public static AnalysisEngine createAggregate(List<AnalysisEngineDescription> analysisEngineDescriptions, List<String> componentNames, TypePriorities typePriorities, SofaMapping[] sofaMappings) throws ResourceInitializationException Deprecated.Create and configure an aggregateAnalysisEngine
from several component descriptions.- Parameters:
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).- Returns:
- an
AnalysisEngine
created from the specified component class and initialized with the configuration parameters. - Throws:
ResourceInitializationException
- if a failure occurred during production of the resource.- See Also:
-
createEngine
public static AnalysisEngine createEngine(List<AnalysisEngineDescription> analysisEngineDescriptions, List<String> componentNames, TypePriorities typePriorities, SofaMapping[] sofaMappings, FlowControllerDescription flowControllerDescription) throws ResourceInitializationException Create and configure an aggregateAnalysisEngine
from several component descriptions.- Parameters:
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).- Returns:
- an
AnalysisEngine
created from the specified component class and initialized with the configuration parameters. - Throws:
ResourceInitializationException
- if a failure occurred during production of the resource.- See Also:
-
createAggregate
@Deprecated public static AnalysisEngine createAggregate(List<AnalysisEngineDescription> analysisEngineDescriptions, List<String> componentNames, TypePriorities typePriorities, SofaMapping[] sofaMappings, FlowControllerDescription flowControllerDescription) throws ResourceInitializationException Create and configure an aggregateAnalysisEngine
from several component descriptions.- Parameters:
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).- Returns:
- an
AnalysisEngine
created from the specified component class and initialized with the configuration parameters. - Throws:
ResourceInitializationException
- if a failure occurred during production of the resource.- See Also:
-
createEngineFromPath
public static AnalysisEngine createEngineFromPath(String descriptorPath, Object... configurationData) throws InvalidXMLException, IOException, ResourceInitializationException Get anAnalysisEngine
from an XML descriptor file and a set of configuration parameters.- 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.- Returns:
- The
AnalysisEngine
created from the XML descriptor and the configuration parameters. - Throws:
IOException
- if an I/O error occursInvalidXMLException
- if the input XML is not valid or does not specify a validResourceSpecifier
ResourceInitializationException
- if a failure occurred during production of the resource.- See Also:
-
createAnalysisEngineFromPath
@Deprecated public static AnalysisEngine createAnalysisEngineFromPath(String descriptorPath, Object... configurationData) throws InvalidXMLException, IOException, ResourceInitializationException Deprecated.Get anAnalysisEngine
from an XML descriptor file and a set of configuration parameters.- 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.- Returns:
- The
AnalysisEngine
created from the XML descriptor and the configuration parameters. - Throws:
IOException
- if an I/O error occursInvalidXMLException
- if the input XML is not valid or does not specify a validResourceSpecifier
ResourceInitializationException
- if a failure occurred during production of the resource.- See Also:
-
createEngineDescriptionFromPath
public static AnalysisEngineDescription createEngineDescriptionFromPath(String descriptorPath, Object... configurationData) throws InvalidXMLException, IOException Get anAnalysisEngineDescription
from an XML descriptor file and a set of configuration parameters.- 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.- Returns:
- The
AnalysisEngineDescription
created from the XML descriptor and the configuration parameters. - Throws:
IOException
- if an I/O error occursInvalidXMLException
- if the input XML is not valid or does not specify a validResourceSpecifier
-
createEngineDescription
public static AnalysisEngineDescription createEngineDescription(PearSpecifier pearSpecifier, Object... configurationData) throws InvalidXMLException, IOException Get anAnalysisEngineDescription
from a PEAR and a set of configuration parameters.- 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.- Returns:
- The
AnalysisEngineDescription
created from the XML descriptor and the configuration parameters. - Throws:
IOException
- if an I/O error occursInvalidXMLException
- if the input XML is not valid or does not specify a validResourceSpecifier
-
createAnalysisEngineDescriptionFromPath
@Deprecated public static AnalysisEngineDescription createAnalysisEngineDescriptionFromPath(String descriptorPath, Object... configurationData) throws InvalidXMLException, IOException Deprecated.Get anAnalysisEngineDescription
from an XML descriptor file and a set of configuration parameters.- 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.- Returns:
- The
AnalysisEngineDescription
created from the XML descriptor and the configuration parameters. - Throws:
IOException
- if an I/O error occursInvalidXMLException
- if the input XML is not valid or does not specify a validResourceSpecifier
-
createEngineDescription
public static AnalysisEngineDescription createEngineDescription(String descriptorName, Object... configurationData) throws InvalidXMLException, IOException Provides a way to create an AnalysisEngineDescription using a descriptor file referenced by name- Parameters:
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 file- Returns:
- a description for this analysis engine.
- Throws:
IOException
- if an I/O error occursInvalidXMLException
- if the input XML is not valid or does not specify a validResourceSpecifier
-
createAnalysisEngineDescription
@Deprecated public static AnalysisEngineDescription createAnalysisEngineDescription(String descriptorName, Object... configurationData) throws InvalidXMLException, IOException Deprecated.Provides a way to create an AnalysisEngineDescription using a descriptor file referenced by name- Parameters:
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 file- Returns:
- a description for this analysis engine.
- Throws:
IOException
- if an I/O error occursInvalidXMLException
- if the input XML is not valid or does not specify a validResourceSpecifier
-
createEngineDescription
public static AnalysisEngineDescription createEngineDescription(Class<? extends AnalysisComponent> componentClass, TypeSystemDescription typeSystem, Object... configurationData) throws ResourceInitializationException Create and configure a primitiveAnalysisEngine
.- Parameters:
componentClass
- a class that extendsAnalysisComponent
e.g. viaJCasAnnotator_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.- Returns:
- a description for this analysis engine.
- Throws:
ResourceInitializationException
- if a failure occurred during production of the resource.
-
createPrimitiveDescription
@Deprecated public static AnalysisEngineDescription createPrimitiveDescription(Class<? extends AnalysisComponent> componentClass, TypeSystemDescription typeSystem, Object... configurationData) throws ResourceInitializationException Deprecated.Create and configure a primitiveAnalysisEngine
.- Parameters:
componentClass
- a class that extendsAnalysisComponent
e.g. viaJCasAnnotator_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.- Returns:
- a description for this analysis engine.
- Throws:
ResourceInitializationException
- if a failure occurred during production of the resource.
-
createEngineDescription
public static AnalysisEngineDescription createEngineDescription(Class<? extends AnalysisComponent> componentClass, Object... configurationData) throws ResourceInitializationException Create and configure a primitiveAnalysisEngine
. The type system is detected automatically usingTypeSystemDescriptionFactory.createTypeSystemDescription()
. Type priorities are detected automatically usingTypePrioritiesFactory.createTypePriorities()
. Indexes are detected automatically usingFsIndexFactory.createFsIndexCollection()
.- Parameters:
componentClass
- a class that extendsAnalysisComponent
e.g. viaJCasAnnotator_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.- Returns:
- a description for this analysis engine.
- Throws:
ResourceInitializationException
- if a failure occurred during production of the resource.
-
createPrimitiveDescription
@Deprecated public static AnalysisEngineDescription createPrimitiveDescription(Class<? extends AnalysisComponent> componentClass, Object... configurationData) throws ResourceInitializationException Deprecated.Create and configure a primitiveAnalysisEngine
. The type system is detected automatically usingTypeSystemDescriptionFactory.createTypeSystemDescription()
. Type priorities are detected automatically usingTypePrioritiesFactory.createTypePriorities()
. Indexes are detected automatically usingFsIndexFactory.createFsIndexCollection()
.- Parameters:
componentClass
- a class that extendsAnalysisComponent
e.g. viaJCasAnnotator_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.- Returns:
- a description for this analysis engine.
- Throws:
ResourceInitializationException
- if a failure occurred during production of the resource.
-
createEngineDescription
public static AnalysisEngineDescription createEngineDescription(Class<? extends AnalysisComponent> componentClass, TypeSystemDescription typeSystem, TypePriorities typePriorities, Object... configurationData) throws ResourceInitializationException Create and configure a primitiveAnalysisEngine
.- Parameters:
componentClass
- a class that extendsAnalysisComponent
e.g. viaJCasAnnotator_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.- Returns:
- a description for this analysis engine.
- Throws:
ResourceInitializationException
- if a failure occurred during production of the resource.
-
createPrimitiveDescription
@Deprecated public static AnalysisEngineDescription createPrimitiveDescription(Class<? extends AnalysisComponent> componentClass, TypeSystemDescription typeSystem, TypePriorities typePriorities, Object... configurationData) throws ResourceInitializationException Create and configure a primitiveAnalysisEngine
.- Parameters:
componentClass
- a class that extendsAnalysisComponent
e.g. viaJCasAnnotator_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.- Returns:
- a description for this analysis engine.
- Throws:
ResourceInitializationException
- if a failure occurred during production of the resource.
-
createEngineDescription
public static AnalysisEngineDescription createEngineDescription(Class<? extends AnalysisComponent> componentClass, TypeSystemDescription typeSystem, TypePriorities typePriorities, FsIndexCollection indexes, Capability[] capabilities, Object... configurationData) throws ResourceInitializationException Create and configure a primitiveAnalysisEngine
.- Parameters:
componentClass
- a class that extendsAnalysisComponent
e.g. viaJCasAnnotator_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 theCAS
. If this is not null explicitly, any indexes declared viaFsIndexCollection
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 viaSofaCapability
orTypeCapability
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 anExternalResourceDescription
in that case.- Returns:
- a description for this analysis engine.
- Throws:
ResourceInitializationException
- if a failure occurred during production of the resource.
-
createPrimitiveDescription
@Deprecated public static AnalysisEngineDescription createPrimitiveDescription(Class<? extends AnalysisComponent> componentClass, TypeSystemDescription typeSystem, TypePriorities typePriorities, FsIndexCollection indexes, Capability[] capabilities, Object... configurationData) throws ResourceInitializationException Deprecated.Create and configure a primitiveAnalysisEngine
.- Parameters:
componentClass
- a class that extendsAnalysisComponent
e.g. viaJCasAnnotator_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 theCAS
. If this is not null explicitly, any indexes declared viaFsIndexCollection
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 viaSofaCapability
orTypeCapability
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 anExternalResourceDescription
in that case.- Returns:
- a description for this analysis engine.
- Throws:
ResourceInitializationException
- if a failure occurred during production of the resource.
-
createEngineDescription
public static AnalysisEngineDescription createEngineDescription(Class<? extends AnalysisComponent> componentClass, TypeSystemDescription typeSystem, TypePriorities typePriorities, FsIndexCollection indexes, Capability[] capabilities, ConfigurationParameter[] configurationParameters, Object[] configurationValues) throws ResourceInitializationException Create and configure a primitiveAnalysisEngine
.- Parameters:
componentClass
- a class that extendsAnalysisComponent
e.g. viaJCasAnnotator_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 theCAS
. If this is not null explicitly, any indexes declared viaFsIndexCollection
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 viaSofaCapability
orTypeCapability
in the class are ignored.configurationParameters
- the configuration parameter declarations.configurationValues
- the configuration parameter values.- Returns:
- a description for this analysis engine.
- Throws:
ResourceInitializationException
- if a failure occurred during production of the resource.
-
createPrimitiveDescription
@Deprecated public static AnalysisEngineDescription createPrimitiveDescription(Class<? extends AnalysisComponent> componentClass, TypeSystemDescription typeSystem, TypePriorities typePriorities, FsIndexCollection indexes, Capability[] capabilities, ConfigurationParameter[] configurationParameters, Object[] configurationValues) throws ResourceInitializationException Deprecated.Create and configure a primitiveAnalysisEngine
.- Parameters:
componentClass
- a class that extendsAnalysisComponent
e.g. viaJCasAnnotator_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 theCAS
. If this is not null explicitly, any indexes declared viaFsIndexCollection
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 viaSofaCapability
orTypeCapability
in the class are ignored.configurationParameters
- the configuration parameter declarations.configurationValues
- the configuration parameter values.- Returns:
- a description for this analysis engine.
- Throws:
ResourceInitializationException
- if a failure occurred during production of the resource.
-
createEngineDescription
public static AnalysisEngineDescription createEngineDescription(Class<? extends AnalysisComponent> componentClass, TypeSystemDescription typeSystem, TypePriorities typePriorities, FsIndexCollection indexes, Capability[] capabilities, ConfigurationParameter[] configurationParameters, Object[] configurationValues, Map<String, ExternalResourceDescription> externalResources) throws ResourceInitializationExceptionCreate and configure a primitiveAnalysisEngine
.- Parameters:
componentClass
- a class that extendsAnalysisComponent
e.g. viaJCasAnnotator_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 theCAS
. If this is set explicitly here, any indexes declared viaFsIndexCollection
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 viaSofaCapability
orTypeCapability
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)- Returns:
- a description for this analysis engine.
- Throws:
ResourceInitializationException
- if a failure occurred during production of the resource.
-
createPrimitiveDescription
@Deprecated public static AnalysisEngineDescription createPrimitiveDescription(Class<? extends AnalysisComponent> componentClass, TypeSystemDescription typeSystem, TypePriorities typePriorities, FsIndexCollection indexes, Capability[] capabilities, ConfigurationParameter[] configurationParameters, Object[] configurationValues, Map<String, ExternalResourceDescription> externalResources) throws ResourceInitializationExceptionDeprecated.Create and configure a primitiveAnalysisEngine
.- Parameters:
componentClass
- a class that extendsAnalysisComponent
e.g. viaJCasAnnotator_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 theCAS
. If this is set explicitly here, any indexes declared viaFsIndexCollection
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 viaSofaCapability
orTypeCapability
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)- Returns:
- a description for this analysis engine.
- Throws:
ResourceInitializationException
- if a failure occurred during production of the resource.
-
createEngineDescription
public static AnalysisEngineDescription createEngineDescription(List<Class<? extends AnalysisComponent>> componentClasses, TypeSystemDescription typeSystem, TypePriorities typePriorities, SofaMapping[] sofaMappings, Object... configurationData) throws ResourceInitializationException Create and configure an aggregateAnalysisEngine
from several component classes.- Parameters:
componentClasses
- a list of class that extendAnalysisComponent
e.g. viaJCasAnnotator_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.- Returns:
- a description for this aggregate analysis engine.
- Throws:
ResourceInitializationException
- if a failure occurred during production of the resource.
-
createAggregateDescription
@Deprecated public static AnalysisEngineDescription createAggregateDescription(List<Class<? extends AnalysisComponent>> componentClasses, TypeSystemDescription typeSystem, TypePriorities typePriorities, SofaMapping[] sofaMappings, Object... configurationData) throws ResourceInitializationException Deprecated.Create and configure an aggregateAnalysisEngine
from several component classes.- Parameters:
componentClasses
- a list of class that extendAnalysisComponent
e.g. viaJCasAnnotator_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.- Returns:
- a description for this aggregate analysis engine.
- Throws:
ResourceInitializationException
- if a failure occurred during production of the resource.
-
createEngineDescription
public static AnalysisEngineDescription createEngineDescription(AnalysisEngineDescription... analysisEngineDescriptions) throws ResourceInitializationException Create and configure an aggregateAnalysisEngine
from several component descriptions.- Parameters:
analysisEngineDescriptions
- a list of analysis engine descriptions from which the aggregate engine is instantiated- Returns:
- a description for this aggregate analysis engine.
- Throws:
ResourceInitializationException
- if a failure occurred during production of the resource.
-
createAggregateDescription
@Deprecated public static AnalysisEngineDescription createAggregateDescription(AnalysisEngineDescription... analysisEngineDescriptions) throws ResourceInitializationException Deprecated.Create and configure an aggregateAnalysisEngine
from several component descriptions.- Parameters:
analysisEngineDescriptions
- a list of analysis engine descriptions from which the aggregate engine is instantiated- Returns:
- a description for this aggregate analysis engine.
- Throws:
ResourceInitializationException
- if a failure occurred during production of the resource.
-
createEngineDescription
public static AnalysisEngineDescription createEngineDescription(List<Class<? extends AnalysisComponent>> componentClasses, TypeSystemDescription typeSystem, TypePriorities typePriorities, SofaMapping[] sofaMappings, FlowControllerDescription flowControllerDescription, Object... configurationData) throws ResourceInitializationException Create and configure an aggregateAnalysisEngine
from several component classes.- Parameters:
componentClasses
- a list of class that extendAnalysisComponent
e.g. viaJCasAnnotator_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.- Returns:
- a description for this aggregate analysis engine.
- Throws:
ResourceInitializationException
- if a failure occurred during production of the resource.
-
createAggregateDescription
@Deprecated public static AnalysisEngineDescription createAggregateDescription(List<Class<? extends AnalysisComponent>> componentClasses, TypeSystemDescription typeSystem, TypePriorities typePriorities, SofaMapping[] sofaMappings, FlowControllerDescription flowControllerDescription, Object... configurationData) throws ResourceInitializationException Deprecated.Create and configure an aggregateAnalysisEngine
from several component classes.- Parameters:
componentClasses
- a list of class that extendAnalysisComponent
e.g. viaJCasAnnotator_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.- Returns:
- a description for this aggregate analysis engine.
- Throws:
ResourceInitializationException
- if a failure occurred during production of the resource.
-
createEngineDescription
public static AnalysisEngineDescription createEngineDescription(FlowControllerDescription flowControllerDescription, AnalysisEngineDescription... analysisEngineDescriptions) throws ResourceInitializationException A simplified factory method for creating an aggregate description for a given flow controller and a sequence of analysis engine descriptions- Parameters:
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 instantiated- Returns:
- a description for this aggregate analysis engine.
- Throws:
ResourceInitializationException
- if a failure occurred during production of the resource.
-
createAggregateDescription
@Deprecated public static AnalysisEngineDescription createAggregateDescription(FlowControllerDescription flowControllerDescription, AnalysisEngineDescription... analysisEngineDescriptions) throws ResourceInitializationException A simplified factory method for creating an aggregate description for a given flow controller and a sequence of analysis engine descriptions- Parameters:
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 instantiated- Returns:
- a description for this aggregate analysis engine.
- Throws:
ResourceInitializationException
- if a failure occurred during production of the resource.
-
createEngineDescription
public static AnalysisEngineDescription createEngineDescription(List<AnalysisEngineDescription> analysisEngineDescriptions, List<String> componentNames, TypePriorities typePriorities, SofaMapping[] sofaMappings, FlowControllerDescription flowControllerDescription) throws ResourceInitializationException A factory method for creating an aggregate description.- Parameters:
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).- Returns:
- a description for this aggregate analysis engine.
- Throws:
ResourceInitializationException
- if a failure occurred during production of the resource.
-
createAggregateDescription
@Deprecated public static AnalysisEngineDescription createAggregateDescription(List<AnalysisEngineDescription> analysisEngineDescriptions, List<String> componentNames, TypePriorities typePriorities, SofaMapping[] sofaMappings, FlowControllerDescription flowControllerDescription) throws ResourceInitializationException A factory method for creating an aggregate description.- Parameters:
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).- Returns:
- a description for this aggregate analysis engine.
- Throws:
ResourceInitializationException
- if a failure occurred during production of the resource.
-
createEngine
public static AnalysisEngine createEngine(JCasProcessor<? extends Exception> aJCasAnnotator) throws ResourceInitializationException Create an analysis engine from a processor function.- Parameters:
aJCasAnnotator
- the processor function.- Returns:
- the ready-to-use analysis engine
- Throws:
ResourceInitializationException
- of there was a problem creating the engine.
-
createEngine
public static AnalysisEngine createEngine(CasProcessor<? extends Exception> aCasAnnotator) throws ResourceInitializationException Create an analysis engine from a processor function.- Parameters:
aCasAnnotator
- the processor function.- Returns:
- the ready-to-use analysis engine
- Throws:
ResourceInitializationException
- of there was a problem creating the engine.
-
createEngine(List, TypeSystemDescription, TypePriorities, SofaMapping[], Object...)