Hi,

I am modifying RunRemoteAsyncAE.java. What I'd like to do is to make an annotation in the Cas.
In the case of an empty Cas:

 CAS cas = uimaEEEngine.getCAS();

I want to send a default text:

 cas.setDocumentText("Some text to send to AS service.");

and create an annotation:

 MyAnnotation ma = new MyAnnotation(cas.getJCas());

But I get "JCas type "MyAnnotation" used in Java code, but was not declared in the XML type descriptor"


The Java implementation of the annotation is found, as it is defined, but as it isn't a UIMA Analisys Engine, it hasn't access to the type system of the pipeline.
How should I solve this issue?


Regards,
David

Reply via email to