uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Eckart de Castilho <...@apache.org>
Subject Re: missing initTypeSystem() in UIMAfit's JCasAnnotator_ImplBase (was: Using OpenNLP type annotations with UIMAfit)
Date Sun, 25 Jan 2015 22:17:42 GMT
On 25.01.2015, at 23:08, Aleksandar Dimitrov <aleks.dimitrov@gmail.com> 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
Mime
View raw message