uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmed Abdeen Hamed <ahmed.elma...@gmail.com>
Subject Re: Creating an aggregate analysis engine on the fly
Date Fri, 21 Aug 2009 13:11:29 GMT
Hi Fabio,
I had a similar need last year and I used a StringBuilder object to
create the aggregate AE on the foly from user selected primitive AE's.
Yes, this is not a clean solution but it has been working quite well
for me.
Let me know if you find a different method.

On Fri, Aug 21, 2009 at 4:47 AM, Fabio
Mancinelli<fabio.mancinelli@gmail.com> wrote:
> Hi everybody,
> I've looked around but I didn't find anything about this, so I am
> asking to more expert people.
> The use case is the following:
> Imagine you have a set of analysis engines.
> By looking at their descriptors you want to synthesize at runtime an
> aggregate analysis engine with a custom control flow that takes a
> subset of those analysis engines and that is put into a CPE for
> execution.
> Now my problem is that since I don't know the analysis engines
> beforehand (I discover them at runtime) and the set could also change
> during the time, I cannot write an XML descriptor that specify the
> aggregate analysis engine.
> One solution to this problem is to have a "template XML" somewhere,
> fill it with the references to the analysis engines that will be
> chosen for composing the aggregate, write it somewhere and tell the
> CPE to use that descriptor for its cas processor . But this solution
> look quite clumsy and complicated.
> Is there another way to "manufacture" programmatically an aggregate
> analysis engine at runtime in order to realize this use case?
> Thanks,
> Fabio

View raw message