Skip to content

Commit

Permalink
Remove clearnlp models from docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasrenault committed Jun 27, 2024
1 parent 4b65fac commit 9dddf33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ RUN unzip -o /opt/cprex/grobid-quantities/build/distributions/grobid-quantities-
### copy grobid-quantities config and quantities model
RUN mkdir -p grobid-quantities/resources \
&& mv /opt/cprex/grobid-quantities/resources/config grobid-quantities/resources \
&& sed -i 's/..\/grobid-home/\/root\/.cprex\/grobid\/grobid-home/g' grobid-quantities/resources/config/config.yml \
&& mv /opt/cprex/grobid-quantities/resources/clearnlp grobid-quantities/resources
&& sed -i 's/..\/grobid-home/\/root\/.cprex\/grobid\/grobid-home/g' grobid-quantities/resources/config/config.yml
# && mv /opt/cprex/grobid-quantities/resources/clearnlp grobid-quantities/resources

RUN cp -r /opt/cprex/grobid-quantities/resources/models/* /opt/cprex/grobid/grobid-home/models

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ flowchart LR

CPREx works with a recent version of python (**>=python 3.11**). Make sure to install CPREx in a virtual environment of your choice.

CPREx depends on [GROBID](https://github.com/kermitt2/grobid) and its extension [grobid-quantities](https://github.com/lfoppiano/grobid-quantities) for parsing PDF documents and extracting quantities from their text. In order to install and run GROBID, a JDK must also be installed on your machine. [GROBID currently supports](https://grobid.readthedocs.io/en/latest/Install-Grobid/) JDKs from **1.11 to 1.17**.
CPREx depends on [GROBID](https://github.com/kermitt2/grobid) and its extension [grobid-quantities](https://github.com/lfoppiano/grobid-quantities) for parsing PDF documents and extracting quantities from their text. In order to install and run GROBID, a JDK must also be installed on your machine. [GROBID currently supports](https://grobid.readthedocs.io/en/latest/Install-Grobid/) JDK versions **11 to 17**.

### Install via PyPI

Expand Down

0 comments on commit 9dddf33

Please sign in to comment.