On 9/13/07, vijay vijay <[EMAIL PROTECTED]> wrote:
> Hi  Adam Lally ,
>
>                            as per ur code below i have tried
>
>
> analysisEngine.setConfigParameterValue("StringsToAnnotate",
>  new String[] {"Michael","UIMA","Vijay",....}); but it is
> giving anerror like analysisEngine cannot be resolved. i am attching the
> class what i wrote.
>

Vijay,

The setConfigParameterValue call does not go in the annotator.  It
goes in your main program.  The idea is that the main program sets the
configuration parameter values before calling the annotator.  It
wouldn't make any sense for the annotator code to set its own
configuration parameter values, then it might as well just hardcode
the values it was searching for!

Did you look at ExampleApplication.java yet?  You asked how to write a
Main program, and you were on the right track with that.  In
ExampleApplication.java's main method you have this line of code:

        AnalysisEngine ae = UIMAFramework.produceAnalysisEngine(specifier);

And you would put after it:

ae.setConfigParameterValue("StringsToAnnotate", new String[]
{"Michael","UIMA","Vijay"});

Regards,
-Adam

Reply via email to