On 25.01.2015, at 23:08, Aleksandar Dimitrov <[email protected]> wrote:

> Scrap that, it doesn't work this way. So my question becomes: can I 
> instantiate
> the type system of an UIMAfit annotator the same way OpenNLP does it (working
> around the missing typeSystemInit method somehow) or do I have to give up
> UIMAfit components? (Or maybe there's an alternative? I'd prefer not to have 
> to
> run JCasGen on opennlp's TypeSystem.xml)

Why don't you want to run JCasGen?

OpenNLP uses a CAS-based API that doesn't use the generated JCas classes. But 
as you have noticed, the CAS-based API is a bit verbose and it is not 
type-safe. It's like reflections in Java.

Cheers,

-- Richard

Reply via email to