You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the JEP native libraries coming with grobid depend simply on the OS and arch. 32/64 bits, but this is not enough because this built library also depends on the version of the JRE used to run Grobid and the version of python installed locally (to run DeLFT). If we want to still embed JEP in GROBID to have the Deep Learning models working "out-of-the-box" we will need to add native libraries for all these variations, or to limit the supported versions of Java and Python.
Right now only the native JEP library for Java 8 and python 3.6 is shipped with Grobid for Lin64 and MacOS.
The text was updated successfully, but these errors were encountered:
I am using sciencebeam-trainer-delft.
I am using regular pip to install dependencies, including jep. The version of jep needs to match the one used in GROBID.
Installing jep will also build the binary, using the already installed default Java version (JDK).
I am then making sure, that the path to the JEP binary is in LD_LIBRARY_PATH (e.g. LD_LIBRARY_PATH=venv/lib/python3/site-packages/jep).
That has worked relatively smoothly for me. The pre-build JEP binary within GROBID was not helpful so far for me due to the dependencies that you mentioned.
When deployed, I am using the Docker image built by sciencebeam-trainer-delft. That obviously contains everything, including Java, Python and the JEP binary.
i.e. Docker is a way of providing those things together. There are other formats that could work similar, e.g. AppImage for Linux.
When installing jep via pip it currently does require the JDK to be installed. I guess it could have provided pre-build binaries. It feels like attempting to include all supported JEP versions in GROBID is something that would rather fit into the scope of JEP. But there are probably too many variables to make that smooth.
Currently the JEP native libraries coming with grobid depend simply on the OS and arch. 32/64 bits, but this is not enough because this built library also depends on the version of the JRE used to run Grobid and the version of python installed locally (to run DeLFT). If we want to still embed JEP in GROBID to have the Deep Learning models working "out-of-the-box" we will need to add native libraries for all these variations, or to limit the supported versions of Java and Python.
Right now only the native JEP library for Java 8 and python 3.6 is shipped with Grobid for Lin64 and MacOS.
The text was updated successfully, but these errors were encountered: