creating new annotation

2014-05-05 Thread hannes schantl
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

Re: creating new annotation

2014-05-05 Thread Richard Eckart de Castilho
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.scha...@gmail.com wrote: Hello, I have following problem: I dont know how to add a new

RE: RandomAccessFile problem in UIMA

2014-05-05 Thread Debbie Zhang
Thanks everyone who replied. I finally got extJWNL partially working. It works on Eclipse, PEAR file, CAS Visual Debugger on installed PEAR, and the system I deploy my PEAR files to. However, it still doesn't work on Document Analyzer for unknown reason. Regards, Debbie -Original

Re: creating new annotation

2014-05-05 Thread hannes schantl
thank u, that solved it. greetings 2014-05-05 11:41 GMT+02:00 Richard Eckart de Castilho r...@apache.org: 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,