-
Notifications
You must be signed in to change notification settings - Fork 22
/
Makefile
28 lines (22 loc) · 1.09 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
.PHONY: install postprocess m2 check stats
install:
cd python/ua_gec && ln -sf ../../data data
cd python && python3 setup.py develop
check:
./scripts/validate.py
postprocess:
rm -rf data/gec-*/test/source*
rm -rf data/gec-*/test/target*
rm -rf data/gec-*/train/source*
rm -rf data/gec-*/train/target*
./scripts/postprocess_dataset.py --annotation-layer gec-fluency
./scripts/postprocess_dataset.py --annotation-layer gec-only
bash -c './scripts/normalize_trailing_newslines.py data/gec-{only,fluency}/{test,train}/*/*{.txt,.ann}'
m2:
./scripts/make_m2.py --partition test --layer gec-fluency --output data/gec-fluency/test/gec-fluency.test.m2
./scripts/make_m2.py --partition test --layer gec-only --output data/gec-only/test/gec-only.test.m2
./scripts/make_m2.py --partition train --layer gec-fluency --output data/gec-fluency/train/gec-fluency.train.m2
./scripts/make_m2.py --partition train --layer gec-only --output data/gec-only/train/gec-only.train.m2
stats:
./python/ua_gec/stats.py all gec-fluency | tee stats.gec-fluency.txt
./python/ua_gec/stats.py all gec-only | tee stats.gec-only.txt