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