uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marshall Schor <...@schor.com>
Subject Re: Creating an aggregate analysis engine on the fly
Date Fri, 21 Aug 2009 14:58:57 GMT
A good source to explore to see how this can be done is the test cases
for uima, which you can find in the uima source code; for instance, look
in the project uimaj-core, in the folder src/test/java.  One test which
might have examples to look at is the class AnalysisEngine_implTest. 

Of course, that is for Analysis Engines, and not for CPE's.

For that, you could look at the tests in the project uimaj-cpe, in the
folder src/test/java.  In the class CpmProcessingTest, there is a method
"setupCpm" that builds a cpe descriptor.



Fabio Mancinelli 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