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: creating new annotation
Date Mon, 05 May 2014 09:41:10 GMT
Like this:

Type type = cas.getTypeSystem().getType("com.test.AnnotationType1)";
AnnotationFS annotation = cas.createAnnotation(type, begin, end);

-- Richard

On 05.05.2014, at 11:25, hannes schantl <johannes.schantl@gmail.com> wrote:

> Hello,
> 
> I have following problem: I dont know how to add a new annotation to the
> CAS when the type of the annotation is only available as a string, e.g.
> com.test.AnnotationType1.
> 
> Does anyone know how to solve this issue?
> 
> Thanks a lot,
> Greetings Hannes


Mime
View raw message