Hello again. I figured out way doing this by using the method CpeCasProcessor.setConfigurationParameterSettings.

But this brings up some other questions:

How to add a completely programmatically created AnalysisEngineDesription (that only exists in memory) to a CollectionProcessingEngine?

The Parameter Definitions dialog of the Component Descriptor Editor does not allow me to add identifiers with the same name in different groups (Error: Parameter Names must be unique), although the Tutorial and Users Guide says in 1.2.1.4 [1] that this is be possible. That brings me to my second question. If the above error is just a bug of the editor and parameters with the same name are allowed in different groups, then how to access a parameter in a specific group when using CpeCasProcessor.setConfigurationParameterSettings? But CasProcessorConfigurationParameterSettings (that is used for the above method) doesn't have a method to specify the group. In contrast ConfigurationParameterSettings (that can be accessed through the AnalysisEngineDescription) has a method setParameterValue(String aGroupName, String aParamName, Object aValue).

Cheers,
Kai


Kai Schlamp schrieb:
Hello.

I like to configure a Collection Processing Engine Descriptor completely programmatically (as specified in 3.3.2. of the Tutorial and Users Guides [1]). The problem is that I also want to change the Parameter Settings of specific Analysis Engines programmatically. Thats why I get the AnalysisEngineDescription for such an Analysis Engine and manipulate the parameter settings programmatically (by using the ResourceMetaData). But how do I now get the (manipulated) AnalysisEngineDescription into the Collection Processing Engine?
I miss a method like:
CpeCasProcessor.setDescriptor(AnalysisEngineDescription description), or something like that.
Is this supported what I like to do?

Cheers,
Kai

[1] http://incubator.apache.org/uima/downloads/releaseDocs/2.2.2-incubating/docs/html/tutorials_and_users_guides/tutorials_and_users_guides.html#ugr.tug.application.configuring_a_cpe_descriptor_programmatically



Reply via email to