-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmakefile
52 lines (41 loc) · 1.19 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
44
45
46
47
48
49
50
51
52
.PHONY: baseline
baseline:
python3 -m scripts.baseline \
--test \
--dev \
--train
.PHONY: evaltest
evaltest:
python3 -m scripts.evaltest --plain --mode test
.PHONY: evaldev
evaldev:
python3 -m scripts.evaltest --plain --mode dev
.PHONY: evaltrain
evaltrain:
python3 -m scripts.evaltest --plain --mode train
.PHONY: build_corpus
build_corpus:
python3 -m scripts.build_corpus --mode private
.PHONY: build_public_corpus
build_public_corpus:
python3 -m scripts.build_corpus --mode public
.PHONY: clean
clean:
git clean -fxd
.PHONY: codalab
codalab:
(cd data && zip -r ../codalab/gold.zip testing development)
cp -r scripts codalab/program/
cp codalab/program/metadata-dev codalab/program/metadata
(cd codalab/program && zip -r ../score_dev.zip metadata scripts eval.sh)
cp codalab/program/metadata-test codalab/program/metadata
(cd codalab/program && zip -r ../score_test.zip metadata scripts eval.sh)
(cd codalab && zip codalab.zip *)
.PHONY: test-codalab
test-codalab:
rm -r codalab/ref/development
rm -r codalab/ref/testing
unzip codalab/gold.zip -d codalab/ref
cp -r data/submissions/baseline/* codalab/res
rm -r codalab/program/scripts
ln -s `pwd`/scripts codalab/program/scripts