-
Notifications
You must be signed in to change notification settings - Fork 0
/
SCRIPT
18 lines (10 loc) · 885 Bytes
/
SCRIPT
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pip3 install --user virtualenv
python3 -m virtualenv -p python3 venv
## Set up environment
source venv/bin/activate
pip3 install -r requirements.txt
## To test
sqlite3 ~solaimani/data/DISK1_CORENLP_RUN1.db_petrarch_done.db 'select phrases from petrarch_table limit 1' | parallel --no-notice --pipe python3 birdcage.py --data '-'
sqlite3 ~solaimani/data/DISK1_CORENLP_RUN1.db_petrarch_done.db "select json_object('doc_id', doc_id, 'phrases', phrases, 'mongo_id', mongo_id, 'date', date) from petrarch_table limit 1" | parallel --no-notice --pipe python3 birdcage.py --data '-'
# Multi core
sqlite3 ~solaimani/data/DISK1_CORENLP_RUN1.db_petrarch_done.db "select json_object('doc_id', doc_id, 'phrases', phrases, 'mongo_id', mongo_id, 'date', date) from petrarch_table limit 5" | parallel --no-notice --sshloginfile myservers --workdir ... --pipe python3 birdcage.py --data '-'