google-code-export / uimafit

Automatically exported from code.google.com/p/uimafit
2 stars 1 forks source link

Allow injection of analysis engine descriptors #124

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago

Original comment by richard.eckart on 5 Jul 2012 at 4:02

GoogleCodeExporter commented 9 years ago

Original comment by richard.eckart on 7 Jan 2013 at 4:51

GoogleCodeExporter commented 9 years ago

Original comment by richard.eckart on 25 Aug 2013 at 8:24