You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@uima.apache.org by Matthias Wendt <ma...@neofonie.de> on 2009/01/28 15:18:06 UTC
uimacpp issue overriding parameters
Hi,
I have an annotator written in c++ that does some linguistic analysis
like morphological analysis, POS-tagging etc.
I'm currently experiencing some troubles trying to integrate the
annotator as a delegate AE in an aggregate. The issue is that parameter
overrides are being ignored.
The log messages during the call of the initialize(...) method print
exactly the parameters specified in the primitive AE descriptor.
Is there anybody who had the same troubles. Anything I might have missed
in the documentation?
Regards,
Matthias
--
--------------------------------
Matthias Wendt
Junior Softwareentwickler
F&E
neofonie
Technologieentwicklung und
Informationsmanagement GmbH
Robert-Koch-Platz 4
10115 Berlin
fon: +49.30 24627 529
fax: +49.30 24627 120
matthias.wendt@neofonie.de
http://www.neofonie.de
Handelsregister
Berlin-Charlottenburg: HRB 67460
Geschaeftsfuehrung
Helmut Hoffer von Ankershoffen
Nurhan Yildirim
Uwe-Gernot Fasold
--------------------------------
Re: uimacpp issue overriding parameters
Posted by Eddie Epstein <ea...@gmail.com>.
On Thu, Jan 29, 2009 at 5:28 AM, Matthias Wendt
<ma...@neofonie.de> wrote:
>> much prefer the UIMA AS service interface which allows the C++
>> annotator to run as a separate, native process. Note that there are no
>> configuration parameter overrides for services either.
>>
>
> so I would have to rewrite the whole pipeline to UIMA AS...
Maybe we have caused confusion with the packaging of UIMA AS. It is an
extension built on top of core UIMA which is interoperable with core
UIMA. The UIMA AS package includes everything in the UIMA package,
minus documentation which was left off to keep the total package size
about the same.
A UIMA AS service can be utilized as a delegate in a standard UIMA
aggregate, so it would be simple to integrate with whatever deployment
mechanism you are using for the rest of your UIMA pipeline. The main
advantage of UIMA AS is to provide significantly enhanced scalability
options, without rewriting any UIMA code or component descriptors.
Eddie
Re: uimacpp issue overriding parameters
Posted by Matthias Wendt <ma...@neofonie.de>.
Eddie Epstein schrieb:
> I'm pretty sure that fixing configuration parameter overrides for C++
> annotators running via the JNI is not easy.
>
I regret to hear this.
> Also, I'm not a big fan of the JNI interface to C++ components, and
>
so am I ;-)
> much prefer the UIMA AS service interface which allows the C++
> annotator to run as a separate, native process. Note that there are no
> configuration parameter overrides for services either.
>
so I would have to rewrite the whole pipeline to UIMA AS...
> If the desired configuration parameter is a runtime parameter rather
> than a resource, consider putting the parameter value in the CAS.
>
This would probably suffice as a workaround.
- Thank you Burn and Eddie
> Eddie
>
> On Wed, Jan 28, 2009 at 10:14 AM, Burn Lewis <bu...@gmail.com> wrote:
>
>> Matthias:
>>
>> Sorry to say overrides aren't supported for C++ annotators (and hence nor
>> for Perl, Python & Tcl), and we forgot to document this limitation. I have
>> created a Jira issue and hopefully we can fix the code rather than the
>> documentation .... it's a useful feature!
>>
>> Burn.
>>
>>
--
--------------------------------
Matthias Wendt
Junior Softwareentwickler
F&E
neofonie
Technologieentwicklung und
Informationsmanagement GmbH
Robert-Koch-Platz 4
10115 Berlin
fon: +49.30 24627 529
fax: +49.30 24627 120
matthias.wendt@neofonie.de
http://www.neofonie.de
Handelsregister
Berlin-Charlottenburg: HRB 67460
Geschaeftsfuehrung
Helmut Hoffer von Ankershoffen
Nurhan Yildirim
Uwe-Gernot Fasold
--------------------------------
Re: uimacpp issue overriding parameters
Posted by Eddie Epstein <ea...@gmail.com>.
I'm pretty sure that fixing configuration parameter overrides for C++
annotators running via the JNI is not easy. The interface for this
information is actually the component descriptor itself. Methods would
need to be added to AnalysisEngineDescription to set
configurationParameters and configurationParametersSetttings, and
methods to get this information from the context object that has the
overrides applied.
Also, I'm not a big fan of the JNI interface to C++ components, and
much prefer the UIMA AS service interface which allows the C++
annotator to run as a separate, native process. Note that there are no
configuration parameter overrides for services either.
If the desired configuration parameter is a runtime parameter rather
than a resource, consider putting the parameter value in the CAS.
Eddie
On Wed, Jan 28, 2009 at 10:14 AM, Burn Lewis <bu...@gmail.com> wrote:
> Matthias:
>
> Sorry to say overrides aren't supported for C++ annotators (and hence nor
> for Perl, Python & Tcl), and we forgot to document this limitation. I have
> created a Jira issue and hopefully we can fix the code rather than the
> documentation .... it's a useful feature!
>
> Burn.
>
Re: uimacpp issue overriding parameters
Posted by Burn Lewis <bu...@gmail.com>.
Matthias:
Sorry to say overrides aren't supported for C++ annotators (and hence nor
for Perl, Python & Tcl), and we forgot to document this limitation. I have
created a Jira issue and hopefully we can fix the code rather than the
documentation .... it's a useful feature!
Burn.
Re: uimacpp issue overriding parameters
Posted by Eddie Epstein <ea...@gmail.com>.
On Thu, Jan 29, 2009 at 4:17 PM, Marshall Schor <ms...@schor.com> wrote:
> Turns out this wasn't too difficult to fix.
And only 10 lines of code! Showoff.
Re: uimacpp issue overriding parameters
Posted by Matthias Wendt <ma...@neofonie.de>.
Marshall Schor schrieb:
> Turns out this wasn't too difficult to fix. The fix has now been done
> and tested and checked into SVN under UIMA-1281 Jira issue.
That's great news.
> If you need
> this fix now, please rebuild the uimaj-core jar.
However, we'll stick to the workaround until the next release.
Thx,
Matthias
> The official next
> release (not yet planned) will pick this up.
>
> -Marshall
>
> Matthias Wendt wrote:
>
>> Hi,
>>
>> I have an annotator written in c++ that does some linguistic analysis
>> like morphological analysis, POS-tagging etc.
>> I'm currently experiencing some troubles trying to integrate the
>> annotator as a delegate AE in an aggregate. The issue is that
>> parameter overrides are being ignored.
>> The log messages during the call of the initialize(...) method print
>> exactly the parameters specified in the primitive AE descriptor.
>>
>> Is there anybody who had the same troubles. Anything I might have
>> missed in the documentation?
>>
>> Regards,
>> Matthias
>>
>>
>>
--
--------------------------------
Matthias Wendt
Junior Softwareentwickler
F&E
neofonie
Technologieentwicklung und
Informationsmanagement GmbH
Robert-Koch-Platz 4
10115 Berlin
fon: +49.30 24627 529
fax: +49.30 24627 120
matthias.wendt@neofonie.de
http://www.neofonie.de
Handelsregister
Berlin-Charlottenburg: HRB 67460
Geschaeftsfuehrung
Helmut Hoffer von Ankershoffen
Nurhan Yildirim
Uwe-Gernot Fasold
--------------------------------
Re: uimacpp issue overriding parameters
Posted by Marshall Schor <ms...@schor.com>.
Turns out this wasn't too difficult to fix. The fix has now been done
and tested and checked into SVN under UIMA-1281 Jira issue. If you need
this fix now, please rebuild the uimaj-core jar. The official next
release (not yet planned) will pick this up.
-Marshall
Matthias Wendt wrote:
> Hi,
>
> I have an annotator written in c++ that does some linguistic analysis
> like morphological analysis, POS-tagging etc.
> I'm currently experiencing some troubles trying to integrate the
> annotator as a delegate AE in an aggregate. The issue is that
> parameter overrides are being ignored.
> The log messages during the call of the initialize(...) method print
> exactly the parameters specified in the primitive AE descriptor.
>
> Is there anybody who had the same troubles. Anything I might have
> missed in the documentation?
>
> Regards,
> Matthias
>
>