-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
43 lines (32 loc) · 1.87 KB
/
Makefile
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
.PHONY: all virtualenv install-requirements download-spacy-data-de download-spacy-data-en test run-minimal-de run-minimal-en eval-minimal-de eval-minimal-en
VIRTUALENV_DIR=./env
CORPUS_DIR=./data/corpus
virtualenv:
if [ ! -e ${VIRTUALENV_DIR}/bin/pip ]; then python3 -m venv ${VIRTUALENV_DIR}; fi
install-requirements: virtualenv
${VIRTUALENV_DIR}/bin/pip install --upgrade pip
${VIRTUALENV_DIR}/bin/pip install -r requirements.txt
${VIRTUALENV_DIR}/bin/python setup.py develop
${VIRTUALENV_DIR}/bin/pre-commit install
download-corpora:
mkdir -p ${CORPUS_DIR}
curl -o /tmp/arg-microtexts-1.zip -LO https://github.com/peldszus/arg-microtexts/archive/master.zip
unzip -qq /tmp/arg-microtexts-1.zip -d ${CORPUS_DIR}
curl -o /tmp/arg-microtexts-1-multi.zip -LO https://github.com/peldszus/arg-microtexts-multilayer/archive/master.zip
unzip -qq /tmp/arg-microtexts-1-multi.zip -d ${CORPUS_DIR}
curl -o /tmp/arg-microtexts-2.zip -LO https://github.com/discourse-lab/arg-microtexts-part2/archive/master.zip
unzip -qq /tmp/arg-microtexts-2.zip -d ${CORPUS_DIR}
download-spacy-data-de:
${VIRTUALENV_DIR}/bin/python -m spacy download de_core_news_lg
download-spacy-data-en:
${VIRTUALENV_DIR}/bin/python -m spacy download en_core_web_lg
test:
${VIRTUALENV_DIR}/bin/py.test -v --cov=src/evidencegraph --cov-report xml src test
run-minimal-en:
stdbuf -o 0 ${VIRTUALENV_DIR}/bin/python src/experiments/run_minimal.py -c m112en | tee "data/m112en-test-adu-simple-noop|equal.log"
run-minimal-de:
stdbuf -o 0 ${VIRTUALENV_DIR}/bin/python src/experiments/run_minimal.py -c m112de | tee "data/m112de-test-adu-simple-noop|equal.log"
eval-minimal-en:
stdbuf -o 0 ${VIRTUALENV_DIR}/bin/python src/experiments/eval_minimal.py -c m112en | tee data/m112en-test-evaluation.log
eval-minimal-de:
stdbuf -o 0 ${VIRTUALENV_DIR}/bin/python src/experiments/eval_minimal.py -c m112de | tee data/m112de-test-evaluation.log