Hi all,

I am fairly new to UIMA.  What I want to do is at run-time pass 
initialization parameters to a UIMA instance started in a Java application 
like this:

            File aeDescriptor = new File( "AggregateAnnotator.xml" );
            XMLInputSource in = new XMLInputSource( aeDescriptor );
            ResourceSpecifier specifier = 
UIMAFramework.getXMLParser().parseResourceSpecifier( in );
            ae = UIMAFramework.produceAnalysisEngine( specifier );
 
            ConfigurationParameterSettings configParamSettings = 
ae.getAnalysisEngineMetaData().getConfigurationParameterSettings();
            configParamSettings.setParameterValue( "Parameter_Name", 
"Parameter Value" );
            ae.reconfigure();
 
            cas = ae.newCAS();
            cas.setDocumentText( "some text" );
            ae.process( cas );

            // do some processing with the cas
            cas.reset();


My AggregateAnnotator.xml is an aggregate analysis engine.  I want all the 
primitive annotators in it to be able to see  "Parameter_Name" with 
"Parameter Value",
but when I set it with the above:

            configParamSettings.setParameterValue( "Parameter_Name", 
"Parameter Value" );

the annotator's code all just see the default parameter value specified in 
the xml.  Any help would be appreciated.

Larry

Reply via email to