-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
48 lines (31 loc) · 996 Bytes
/
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
#-*-makefile-*-
#
# maintain various MT testsets
DATASET_DIRS := $(dir $(shell find datasets -name Makefile))
TESTSET_TSVS := $(shell find datasets -name testsets.tsv)
all:
for d in ${DATASET_DIRS}; do \
${MAKE} -C $$d all; \
done
${MAKE} tsvfiles
tsvfiles: testsets.tsv benchmarks.tsv langpairs.tsv langpair2benchmark.tsv benchmark2langpair.tsv
index.txt: testsets
find testsets -type f | \
grep -v '.labels$$' | grep -v '.info$$' | \
xargs wc > $@
testsets.tsv: ${TESTSET_TSVS}
find datasets -name testsets.tsv -exec cat {} \; |\
sort -u > $@
%.tsv-check: %.tsv
cut -f7- $< | tr "\t" "\n" | xargs ls
benchmarks.tsv: testsets.tsv
cut -f3 $< | sort -u > $@
for b in `cat benchmarks.tsv`; do \
grep " $$b " testsets.tsv > testsets/$$b.tsv; \
done
langpairs.tsv: testsets.tsv
cut -f1,2 $< | sort -u > $@
langpair2benchmark.tsv: testsets.tsv
scripts/langpair_benchmarks.pl < $< > $@
benchmark2langpair.tsv: testsets.tsv
scripts/benchmark_langpairs.pl < $< > $@