uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Ginter <thomas.gin...@utah.edu>
Subject Re: uima jcas get annotation type from string
Date Thu, 13 Feb 2014 21:11:21 GMT
There are a couple of different ways to get a pointer to specific Type object.  

jcas.getRequiredType(“mypackage.AnnotationType”);
(cas|jcas).getTypeSystem.getType(“mypackage.AnnotationType”);

The question is what do you want to do with the Type object once you have it.

Thanks,

Thomas Ginter
801-448-7676
thomas.ginter@utah.edu




On Feb 13, 2014, at 6:03 AM, hannes schantl <johannes.schantl@gmail.com> wrote:

> Hi,
> 
> Is there a way to get an annotation Type from the cas(or Jcas) from a
> string.
> For example, i am looking for something like that:
> jcas.getCasType("AnnotationName")
> 
> greetings Hannes


Mime
View raw message