I want to run Ruta scripts on a separate server and return the output for further processing (in Java).
The only way that I know to trigger a Ruta script is by calling the engine.process(cas) method from a Java maven project. But it doesn't generate an xmi file which could be sent back to the client (i.e., Java server) for further processing. Neither can I return the CAS object to the client (if I'm right).
How can I achieve it?
- How to return CAS from server to client? (OR)
- How to generate xmi file while running Ruta from Java code ?
Tell me a better way if any.
Just a comment to the second bullit point in your question:
In the java code when running
engine.process()
, you could simply use the CasIOUtils to write the CAS to some (file/byte) outputstream in the XMI format or in some other format.DISCLAIMER: I am a developer of UIMA Ruta