averbis / IRuta

A UIMA Ruta kernel for Jupyter Notebook.
Apache License 2.0
7 stars 1 forks source link

Python wrapper for UIMA-Ruta #10

Open aggarwalpiush opened 3 years ago

aggarwalpiush commented 3 years ago

IRuta needs explicit browser base development to extract the linguistic features which are needed for the downstream tasks.

Does it foreseeable to have a python wrapper on UIMA Ruta, which can be directly imported to the main codebase?

Please shed light on the show breakers if it can't be implemented.

reckart commented 3 years ago

Currently, it is possible to mix Python and Ruta using the IRuta kernel in an SOS notebook. The SOS kernel allows to define a single notebook using multiple kernels and defines mechanisms for exchanging data between the different kernels.

A Python interface directly to Ruta faces the same question as for accessing any other Java library from Python: what is a good Java <-> Python interface? If you know one that works in your particular context, you can likely implement a Python wrapper.

You can use DKPro Cassis to read/write the UIMA CAS XMI files that Ruta can work on and run Ruta (or any UIMA analysis engine or even Java program) in a separate Java process which you can feed with these files. That is basically what happens when working with the SOS notebooks.