Radwen ANIBA wrote:
> Hi
>
> I'm trying to change a parameter in an AE and then to call the CPE that uses
> this AE but the changes are not made despite the fact that I don't have
> errors. 

How did you indicate to the CPE (Collection Processing Engine) that it
should use this configured Analysis Engine?
-Marshall
> Here is the part of code I'm using
>
> ResourceSpecifier aeSpecifier;
>         try {
>             aeSpecifier =
> UIMAFramework.getXMLParser().parseResourceSpecifier(new
> XMLInputSource("desc/TestSeePredAED.xml"));
>             AnalysisEngine ae =
> UIMAFramework.produceAnalysisEngine(aeSpecifier);
>
>             ConfigurationParameterSettings aesettings =
> ae.getMetaData().getConfigurationParameterSettings();
>
>              NameValuePair[] valuePairs2 =
> aesettings.getParameterSettings();
>
>              for (NameValuePair nvp2 : valuePairs2) {
>
>
>
> if(nvp2.getName().matches("OUTPUTDIR"))nvp2.setValue("/home/radwen/Bureau/Fold");
>
>                  System.out.format("name='%s'; value='%s'\n",
>
>                          nvp2.getName(), nvp2.getValue());
>
>              }
>
>           ae.reconfigure();
>
>
> But after calling my CPE programmaticaly just after this code, well the
> changes seems to be not made.
>
> Can you help me figuring this out ?
>
> Thx
>
> Radwen
>
>   

Reply via email to