ChatPaper / serve_grobid.sh
yiyixin's picture
upload
351251e
#!/bin/bash
# download GROBID if directory does not exist
declare -r GROBID_VERSION="0.6.2" # or change to current stable version
if [ ! -d grobid-${GROBID_VERSION} ]; then
wget https://github.com/kermitt2/grobid/archive/${GROBID_VERSION}.zip
sudo chmod 777 "${GROBID_VERSION}.zip"
unzip "${GROBID_VERSION}.zip"
rm "${GROBID_VERSION}.zip"
fi
cd grobid-${GROBID_VERSION} || exit
sudo chmod 777 gradlew
./gradlew