File size: 895 Bytes
55e75fe 9cc7672 55e75fe 9a126e7 55e75fe 8d3c5c1 55e75fe 2f4ef84 55e75fe 2f4ef84 f2b0b1a 2e53cb2 2f4ef84 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
FROM lfoppiano/grobid-evaluation:latest
USER root
RUN mkdir -m 777 -p /opt/grobid/grobid-home/tmp
RUN mkdir -m 777 -p /opt/grobid/logs
RUN chmod -R uog+rw /opt/grobid
RUN chmod -R uog+rw /data/db
COPY --chown=lfoppiano grobid.yaml /opt/grobid/grobid-home/config/grobid.yaml
# Evaluation data
RUN mkdir -m 777 -p /opt/grobid/evaluation
WORKDIR /opt/grobid
RUN git lfs install && git clone https://huggingface.co/datasets/sciencialab/grobid-evaluation evaluation
VOLUME ["/opt/grobid/grobid-home/tmp"]
WORKDIR /opt/grobid
CMD ["/bin/bash", "-c", "./gradlew jatsEval -Pp2t=/opt/grobid/evaluation/PMC_sample_1943 -Prun=1 -PfileRatio=1; ./gradlew jatsEval -Pp2t=/opt/grobid/evaluation/biorxiv-10k-test-2000 -Prun=1 -PfileRatio=1; ./gradlew jatsEval -Pp2t=/opt/grobid/evaluation/eLife_984 -Prun=1 -PfileRatio=1; ./gradlew jatsEval -Pp2t=/opt/grobid/evaluation/PLOS_1000 -Prun=1 -PfileRatio=1;"]
|