You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@uima.apache.org by Jörn Kottmann <ko...@gmail.com> on 2009/04/28 16:07:56 UTC
Re: Getting AE performance stats
I did not found time to dig further last time, but now I did
and found out that the PearAnalysisEngineWrapper
does not provide access to the AnalysisEngineManagement object
of the wrapped AE. Which means that only a virgin
AnalysisEngineManagement object can be retrieved from
the PearAnalysisEngineWrapper.
> Are you running the PEAR from within an aggregate (an aggregate
> containing only one delegate - the pear descriptor)?
>
Yes, I get the pear descriptor and use it to create the
analysis engine.
Here is my code:
XMLInputSource in = new XMLInputSource(instPear
.getComponentPearDescPath());
ResourceSpecifier specifier = UIMAFramework.getXMLParser()
.parseResourceSpecifier(in);
ResourceManager rsrcMgr = UIMAFramework.newDefaultResourceManager();
AnalysisEngine ae = UIMAFramework.produceAnalysisEngine(
specifier, rsrcMgr, null);
Jörn