Thomas Francart wrote: > > Hello UIMA gurus > > I am trying to setup an aggregate analysis engine. What I would like > to do is to be able to integrate in my process one or more steps that > serialize the CAS into a String object that I want to access > programmatically. > My question is : can I access via the API the Analysis Engines that > compose my aggregate AE, so that I can access some properties in them > (like a String into which the serialization of the CAS would have been > stored) ? It seems like no... or should I put my String into the CAS > itself ? > More generally, is there a way I can programmatically access my > Analysis Engines to set/get some parameters or properties in them ? On the general question - there is no direct access to Analysis Engines from Applications - this is for many reasons, including the desire to allow different deployments - such as having the analysis engine be running remotely.
You can, from your application, update the analysis engine properties, and then call the reconfigure method. See http://incubator.apache.org/uima/downloads/releaseDocs/2.2.0-incubating/docs/html/tutorials_and_users_guides/tutorials_and_users_guides.html#ugr.tug.aae.contract_for_annotator_methods and the javadoc for AnalysisEngine: http://incubator.apache.org/uima/apidocs/org/apache/uima/analysis_engine/AnalysisEngine.html If you scroll down to the section "Methods inherited from interface org.apache.uima.resource.ConfigurableResource, you'll see the methods to setConfigParameterValue This method sets the parameter; then you call the reconfigure method to tell the AE that its parameters have changed. Note that in the current impl, this only works for co-located Analysis Engines; it's on a to-do list to make this work for remotes, some time in the future. -Marshall > > Thanks > Thomas > > -- > Thomas Francart > Mondeca > 3, cité Nollez 75018 Paris France > Tel: +33 (0)1 44 92 35 04 - Fax: +33 (0)1 44 92 02 59 > Blog: mondeca.wordpress.com <http://mondeca.wordpress.com> > Web: www.mondeca.com <http://www.mondeca.com> > Mail: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
