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.-
Method Summary
Modifier and TypeMethodDescriptionstatic AnalysisEnginecreateAggregate(List<Class<? extends AnalysisComponent>> componentClasses, TypeSystemDescription typeSystem, TypePriorities typePriorities, SofaMapping[] sofaMappings, Object... configurationData) Deprecated.static AnalysisEnginecreateAggregate(List<Class<? extends AnalysisComponent>> componentClasses, TypeSystemDescription typeSystem, TypePriorities typePriorities, SofaMapping[] sofaMappings, FlowControllerDescription flowControllerDescription, Object... configurationData) static AnalysisEnginecreateAggregate(List<AnalysisEngineDescription> analysisEngineDescriptions, List<String> componentNames, TypePriorities typePriorities, SofaMapping[] sofaMappings) Deprecated.static AnalysisEnginecreateAggregate(List<AnalysisEngineDescription> analysisEngineDescriptions, List<String> componentNames, TypePriorities typePriorities, SofaMapping[] sofaMappings, FlowControllerDescription flowControllerDescription) static AnalysisEngineDeprecated.static AnalysisEngineDescriptioncreateAggregateDescription(List<Class<? extends AnalysisComponent>> componentClasses, TypeSystemDescription typeSystem, TypePriorities typePriorities, SofaMapping[] sofaMappings, Object... configurationData) static AnalysisEngineDescriptioncreateAggregateDescription(List<Class<? extends AnalysisComponent>> componentClasses, TypeSystemDescription typeSystem, TypePriorities typePriorities, SofaMapping[] sofaMappings, FlowControllerDescription flowControllerDescription, Object... configurationData) static AnalysisEngineDescriptioncreateAggregateDescription(List<AnalysisEngineDescription> analysisEngineDescriptions, List<String> componentNames, TypePriorities typePriorities, SofaMapping[] sofaMappings, FlowControllerDescription flowControllerDescription) static AnalysisEngineDescriptioncreateAggregateDescription(AnalysisEngineDescription... analysisEngineDescriptions) Deprecated.static AnalysisEngineDescriptioncreateAggregateDescription(FlowControllerDescription flowControllerDescription, AnalysisEngineDescription... analysisEngineDescriptions) static AnalysisEnginecreateAnalysisEngine(String descriptorName, Object... configurationData) Deprecated.static AnalysisEnginecreateAnalysisEngine(AnalysisEngineDescription analysisEngineDescription, String viewName) Deprecated.static AnalysisEngineDescriptioncreateAnalysisEngineDescription(String descriptorName, Object... configurationData) Deprecated.static AnalysisEngineDescriptioncreateAnalysisEngineDescriptionFromPath(String descriptorPath, Object... configurationData) Deprecated.static AnalysisEnginecreateAnalysisEngineFromPath(String descriptorPath, Object... configurationData) Deprecated.static AnalysisEnginecreateEngine(Class<? extends AnalysisComponent> componentClass, Object... configurationData) Create and configure a primitiveAnalysisEngine.static AnalysisEnginecreateEngine(Class<? extends AnalysisComponent> componentClass, TypeSystemDescription typeSystem, Object... configurationData) Create and configure a primitiveAnalysisEngine.static AnalysisEnginecreateEngine(Class<? extends AnalysisComponent> componentClass, TypeSystemDescription typeSystem, String[] typePriorities, Object... configurationData) Create and configure a primitiveAnalysisEngine.static AnalysisEnginecreateEngine(Class<? extends AnalysisComponent> componentClass, TypeSystemDescription typeSystem, TypePriorities typePriorities, Object... configurationData) Create and configure a primitiveAnalysisEngine.static AnalysisEnginecreateEngine(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 AnalysisEnginecreateEngine(List<Class<? extends AnalysisComponent>> componentClasses, TypeSystemDescription typeSystem, TypePriorities typePriorities, SofaMapping[] sofaMappings, Object... configurationData) Create and configure an aggregateAnalysisEnginefrom several component classes.static AnalysisEnginecreateEngine(List<Class<? extends AnalysisComponent>> componentClasses, TypeSystemDescription typeSystem, TypePriorities typePriorities, SofaMapping[] sofaMappings, FlowControllerDescription flowControllerDescription, Object... configurationData) Create and configure an aggregateAnalysisEnginefrom several component classes.static AnalysisEnginecreateEngine(List<AnalysisEngineDescription> analysisEngineDescriptions, List<String> componentNames, TypePriorities typePriorities, SofaMapping[] sofaMappings) Create and configure an aggregateAnalysisEnginefrom several component descriptions.static AnalysisEnginecreateEngine(List<AnalysisEngineDescription> analysisEngineDescriptions, List<String> componentNames, TypePriorities typePriorities, SofaMapping[] sofaMappings, FlowControllerDescription flowControllerDescription) Create and configure an aggregateAnalysisEnginefrom several component descriptions.static AnalysisEnginecreateEngine(CasProcessor<? extends Exception> aCasAnnotator) Create an analysis engine from a processor function.static AnalysisEnginecreateEngine(JCasProcessor<? extends Exception> aJCasAnnotator) Create an analysis engine from a processor function.static AnalysisEnginecreateEngine(AnalysisEngineDescription desc, Object... configurationData) Create and configure a primitiveAnalysisEngine.static AnalysisEnginecreateEngine(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 AnalysisEngineDescriptioncreateEngineDescription(Class<? extends AnalysisComponent> componentClass, Object... configurationData) Create and configure a primitiveAnalysisEngine.static AnalysisEngineDescriptioncreateEngineDescription(Class<? extends AnalysisComponent> componentClass, TypeSystemDescription typeSystem, Object... configurationData) Create and configure a primitiveAnalysisEngine.static AnalysisEngineDescriptioncreateEngineDescription(Class<? extends AnalysisComponent> componentClass, TypeSystemDescription typeSystem, TypePriorities typePriorities, Object... configurationData) Create and configure a primitiveAnalysisEngine.static AnalysisEngineDescriptioncreateEngineDescription(Class<? extends AnalysisComponent> componentClass, TypeSystemDescription typeSystem, TypePriorities typePriorities, FsIndexCollection indexes, Capability[] capabilities, Object... configurationData) Create and configure a primitiveAnalysisEngine.static AnalysisEngineDescriptioncreateEngineDescription(Class<? extends AnalysisComponent> componentClass, TypeSystemDescription typeSystem, TypePriorities typePriorities, FsIndexCollection indexes, Capability[] capabilities, ConfigurationParameter[] configurationParameters, Object[] configurationValues) Create and configure a primitiveAnalysisEngine.static AnalysisEngineDescriptioncreateEngineDescription(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 AnalysisEngineDescriptioncreateEngineDescription(String descriptorName, Object... configurationData) Provides a way to create an AnalysisEngineDescription using a descriptor file referenced by namestatic AnalysisEngineDescriptioncreateEngineDescription(List<Class<? extends AnalysisComponent>> componentClasses, TypeSystemDescription typeSystem, TypePriorities typePriorities, SofaMapping[] sofaMappings, Object... configurationData) Create and configure an aggregateAnalysisEnginefrom several component classes.static AnalysisEngineDescriptioncreateEngineDescription(List<Class<? extends AnalysisComponent>> componentClasses, TypeSystemDescription typeSystem, TypePriorities typePriorities, SofaMapping[] sofaMappings, FlowControllerDescription flowControllerDescription, Object... configurationData) Create and configure an aggregateAnalysisEnginefrom several component classes.static AnalysisEngineDescriptioncreateEngineDescription(List<AnalysisEngineDescription> analysisEngineDescriptions, List<String> componentNames, TypePriorities typePriorities, SofaMapping[] sofaMappings, FlowControllerDescription flowControllerDescription) A factory method for creating an aggregate description.static AnalysisEngineDescriptioncreateEngineDescription(AnalysisEngineDescription... analysisEngineDescriptions) Create and configure an aggregateAnalysisEnginefrom several component descriptions.static AnalysisEngineDescriptioncreateEngineDescription(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 AnalysisEngineDescriptioncreateEngineDescription(PearSpecifier pearSpecifier, Object... configurationData) Get anAnalysisEngineDescriptionfrom a PEAR and a set of configuration parameters.static AnalysisEngineDescriptioncreateEngineDescriptionFromPath(String descriptorPath, Object... configurationData) Get anAnalysisEngineDescriptionfrom an XML descriptor file and a set of configuration parameters.static AnalysisEnginecreateEngineFromPath(String descriptorPath, Object... configurationData) Get anAnalysisEnginefrom an XML descriptor file and a set of configuration parameters.static AnalysisEnginecreatePrimitive(Class<? extends AnalysisComponent> componentClass, Object... configurationData) Deprecated.static AnalysisEnginecreatePrimitive(Class<? extends AnalysisComponent> componentClass, TypeSystemDescription typeSystem, Object... configurationData) Deprecated.static AnalysisEnginecreatePrimitive(Class<? extends AnalysisComponent> componentClass, TypeSystemDescription typeSystem, String[] typePriorities, Object... configurationData) Deprecated.static AnalysisEnginecreatePrimitive(Class<? extends AnalysisComponent> componentClass, TypeSystemDescription typeSystem, TypePriorities typePriorities, Object... configurationData) static AnalysisEnginecreatePrimitive(AnalysisEngineDescription desc, Object... configurationData) Deprecated.static AnalysisEngineDescriptioncreatePrimitiveDescription(Class<? extends AnalysisComponent> componentClass, Object... configurationData) Deprecated.static AnalysisEngineDescriptioncreatePrimitiveDescription(Class<? extends AnalysisComponent> componentClass, TypeSystemDescription typeSystem, Object... configurationData) Deprecated.static AnalysisEngineDescriptioncreatePrimitiveDescription(Class<? extends AnalysisComponent> componentClass, TypeSystemDescription typeSystem, TypePriorities typePriorities, Object... configurationData) static AnalysisEngineDescriptioncreatePrimitiveDescription(Class<? extends AnalysisComponent> componentClass, TypeSystemDescription typeSystem, TypePriorities typePriorities, FsIndexCollection indexes, Capability[] capabilities, Object... configurationData) static AnalysisEngineDescriptioncreatePrimitiveDescription(Class<? extends AnalysisComponent> componentClass, TypeSystemDescription typeSystem, TypePriorities typePriorities, FsIndexCollection indexes, Capability[] capabilities, ConfigurationParameter[] configurationParameters, Object[] configurationValues) static AnalysisEngineDescriptioncreatePrimitiveDescription(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
AnalysisEnginecreated 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 validResourceSpecifierResourceInitializationException- 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
AnalysisEnginecreated 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 validResourceSpecifierResourceInitializationException- 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
AnalysisEnginecreated 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
AnalysisEnginecreated 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
AnalysisEnginecreated 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 extendsAnalysisComponente.g. viaJCasAnnotator_ImplBaseconfigurationData- 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
AnalysisEnginecreated 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 extendsAnalysisComponente.g. viaJCasAnnotator_ImplBaseconfigurationData- 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
AnalysisEnginecreated 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 extendsAnalysisComponente.g. viaJCasAnnotator_ImplBasetypeSystem- 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
AnalysisEnginecreated 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 extendsAnalysisComponente.g. viaJCasAnnotator_ImplBasetypeSystem- 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
AnalysisEnginecreated 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 extendsAnalysisComponente.g. viaJCasAnnotator_ImplBasetypeSystem- 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
AnalysisEnginecreated 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 extendsAnalysisComponente.g. viaJCasAnnotator_ImplBasetypeSystem- 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
AnalysisEnginecreated 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 extendsAnalysisComponente.g. viaJCasAnnotator_ImplBasetypeSystem- 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
AnalysisEnginecreated 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 extendsAnalysisComponente.g. viaJCasAnnotator_ImplBasetypeSystem- 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
AnalysisEnginecreated 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 aggregateAnalysisEnginefrom several component classes.- Parameters:
componentClasses- a list of class that extendAnalysisComponente.g. viaJCasAnnotator_ImplBasetypeSystem- 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
AnalysisEnginecreated 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 aggregateAnalysisEnginefrom several component classes.- Parameters:
componentClasses- a list of class that extendAnalysisComponente.g. viaJCasAnnotator_ImplBasetypeSystem- 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
AnalysisEnginecreated 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 aggregateAnalysisEnginefrom several component classes.- Parameters:
componentClasses- a list of class that extendAnalysisComponente.g. viaJCasAnnotator_ImplBasetypeSystem- 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
AnalysisEnginecreated 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 aggregateAnalysisEnginefrom several component classes.- Parameters:
componentClasses- a list of class that extendAnalysisComponente.g. viaJCasAnnotator_ImplBasetypeSystem- 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
AnalysisEnginecreated 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 aggregateAnalysisEnginefrom 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
AnalysisEnginecreated 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 aggregateAnalysisEnginefrom 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
AnalysisEnginecreated 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 aggregateAnalysisEnginefrom 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
AnalysisEnginecreated 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 aggregateAnalysisEnginefrom 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
AnalysisEnginecreated 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 anAnalysisEnginefrom 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
AnalysisEnginecreated 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 validResourceSpecifierResourceInitializationException- 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 anAnalysisEnginefrom 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
AnalysisEnginecreated 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 validResourceSpecifierResourceInitializationException- if a failure occurred during production of the resource.- See Also:
-
createEngineDescriptionFromPath
public static AnalysisEngineDescription createEngineDescriptionFromPath(String descriptorPath, Object... configurationData) throws InvalidXMLException, IOException Get anAnalysisEngineDescriptionfrom 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
AnalysisEngineDescriptioncreated 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 anAnalysisEngineDescriptionfrom 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
AnalysisEngineDescriptioncreated 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 anAnalysisEngineDescriptionfrom 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
AnalysisEngineDescriptioncreated 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 extendsAnalysisComponente.g. viaJCasAnnotator_ImplBasetypeSystem- 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 extendsAnalysisComponente.g. viaJCasAnnotator_ImplBasetypeSystem- 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 extendsAnalysisComponente.g. viaJCasAnnotator_ImplBaseconfigurationData- 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 extendsAnalysisComponente.g. viaJCasAnnotator_ImplBaseconfigurationData- 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 extendsAnalysisComponente.g. viaJCasAnnotator_ImplBasetypeSystem- 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 extendsAnalysisComponente.g. viaJCasAnnotator_ImplBasetypeSystem- 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 extendsAnalysisComponente.g. viaJCasAnnotator_ImplBasetypeSystem- 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 viaFsIndexCollectionin 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 viaSofaCapabilityorTypeCapabilityin 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 anExternalResourceDescriptionin 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 extendsAnalysisComponente.g. viaJCasAnnotator_ImplBasetypeSystem- 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 viaFsIndexCollectionin 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 viaSofaCapabilityorTypeCapabilityin 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 anExternalResourceDescriptionin 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 extendsAnalysisComponente.g. viaJCasAnnotator_ImplBasetypeSystem- 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 viaFsIndexCollectionin 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 viaSofaCapabilityorTypeCapabilityin 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 extendsAnalysisComponente.g. viaJCasAnnotator_ImplBasetypeSystem- 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 viaFsIndexCollectionin 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 viaSofaCapabilityorTypeCapabilityin 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 extendsAnalysisComponente.g. viaJCasAnnotator_ImplBasetypeSystem- 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 viaFsIndexCollectionin 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 viaSofaCapabilityorTypeCapabilityin 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 extendsAnalysisComponente.g. viaJCasAnnotator_ImplBasetypeSystem- 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 viaFsIndexCollectionin 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 viaSofaCapabilityorTypeCapabilityin 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 aggregateAnalysisEnginefrom several component classes.- Parameters:
componentClasses- a list of class that extendAnalysisComponente.g. viaJCasAnnotator_ImplBasetypeSystem- 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 aggregateAnalysisEnginefrom several component classes.- Parameters:
componentClasses- a list of class that extendAnalysisComponente.g. viaJCasAnnotator_ImplBasetypeSystem- 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 aggregateAnalysisEnginefrom 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 aggregateAnalysisEnginefrom 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 aggregateAnalysisEnginefrom several component classes.- Parameters:
componentClasses- a list of class that extendAnalysisComponente.g. viaJCasAnnotator_ImplBasetypeSystem- 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 aggregateAnalysisEnginefrom several component classes.- Parameters:
componentClasses- a list of class that extendAnalysisComponente.g. viaJCasAnnotator_ImplBasetypeSystem- 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...)