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
, hannes schantl johannes.scha...@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
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 ginter801-448-7676thomas.gin...@utah.edu
On Feb 13, 2014, at 6:03 AM, hannes