At the moment, uimaFIT doesn't have explicit support for injecting
AnalysisEngineDescriptors directly as parameters. One could imagine something
like this:
createPrimitiveDescriptor(OuterAE.class,
OuterAE.PARAM_NAME, "outer",
OuterAE.PARAM_INNER_AE, createPrimitiveDescriptor(InnerAE.class,
PARAM_NAME, "inner");
This would be useful for scenarios as implemented in the UIMA Sandbox
ConceptMapperAnnotator where the analysis engine description for tokenizer is
passed into the component to do internal tokenization. There it is solved by
passing in the path to the XML descriptor.
It looks intriguingly simple, but its not as straight as with the external
resources. When a analysis engine descriptor is created with uimaFIT factories,
I want it to be self-contained. Unfortunately, there is no good place where
auxiliary analysis engine descriptors could be stored in an
AnalysisEngineDescription, in particular a place from where the data could be
accessed and injected into a component. The straight-forward way of just
serializing the descriptor into XML and passing that as a String parameter
would work, but it's so ugly that I don't even want to consider implementing
that... just imagine what would happen if that descriptor is opened in the
Eclipse component editor.
Original issue reported on code.google.com by richard.eckart on 8 Jun 2012 at 9:13
Original issue reported on code.google.com by
richard.eckart
on 8 Jun 2012 at 9:13