forked from maszhongming/ReactionMiner
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathentrypoint.sh
More file actions
executable file
·29 lines (23 loc) · 999 Bytes
/
entrypoint.sh
File metadata and controls
executable file
·29 lines (23 loc) · 999 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
# Stop script if any error is encountered
set -e
# Replace GROBID_SERVER in conf file
sed -i -e "s/localhost/${GROBID_SERVER}/g" /workspace/s2orc-doc2json/doc2json/grobid2json/grobid/grobid_client.py
# Run pdf2text in the doc2json conda env
echo '######################################'
echo '####### RUNNING pdf2text #######'
echo '######################################'
cd /workspace/pdf2text
conda run --no-capture-output -n doc2json bash ./pdf2txt.sh
# TODO: move files?
# Run reactionminer example script in the base conda env
echo '###########################################'
echo '####### RUNNING ReactionMiner #######'
echo '###########################################'
cd /workspace
python ./run_reactionminer.py
# Run ChemScraper using input PDF and ReactionMiner JSON output
echo '###########################################'
echo '######## RUNNING ChemScraper ########'
echo '###########################################'
python ./run_chemscraper.py