RE: SimpleServer, instantiating CAS with custom typesystem?

2013-02-19 Thread Helen Johnson -X (heljohns - Infobahn Softworld Inc at Cisco)
Thanks for your reply, Jens. I admit I had been avoiding setting the text of the CAS to be the entire XML string I get back from the first REST service because it is a massive string and I only want a couple nodes from that xml string to be processed throughout the UIMA pipeline. But I see

Re: SimpleServer, instantiating CAS with custom typesystem?

2013-02-19 Thread Thomas Ginter
Helen, You might also consider using UIMA-AS instead. UIMA-AS allows you to deploy a service (your AAE) that can be remotely accessed by UIMA-AS clients on other machines or in other JVMs for scalable deployments. Each client provides a CollectionReader to supply documents to the service and

Obtaining the AnalysisEngine object from a primitive analysis component

2013-02-19 Thread Shahim Essaid
Hi all, I have a use case where I would like be able to get the AnalysisEngine object from an AnalysisComponent object at runtime in order to get to the: private ResourceCreationSpecifier mDescription; (or the aggregate's corresponding field.) in the PrimitiveAnalysisEngine_impl class. This

RE: SimpleServer, instantiating CAS with custom typesystem?

2013-02-19 Thread Helen Johnson -X (heljohns - Infobahn Softworld Inc at Cisco)
So it turns out I cannot invoke cas.reset() from inside an annotator, nor can I set anew the text to be processed using cas.setDocumentText() once the doc-text has already been set in the SimpleServer Service.java class. What are my options for altering the document text inside an annotator

Re: SimpleServer, instantiating CAS with custom typesystem?

2013-02-19 Thread Chris Roeder
Hi Helen, We use CAS views. Chapter six should help: http://uima.apache.org/d/uimaj-2.4.0/tutorials_and_users_guides.pdf We read the xml into one view and then have an annotator scrape the plain text and put it in another. You can work this so the XML to plaintext code is sofa aware and puts