-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.emnlp
32 lines (26 loc) · 1.15 KB
/
Makefile.emnlp
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
LANGUAGE=
LANGUAGE_INITCAP=$(shell python initcap.py $(LANGUAGE))
LANGUAGE_CAPITAL=$(shell echo $(LANGUAGE) | tr a-z A-Z)
TASK_IDENTIFIER=$(LANGUAGE)
TRANSFORMOPT=
EMNLPDIR=/home/ubuntu/sprml/$(LANGUAGE_CAPITAL)_SPMRL/gold/conll
DEV=$(EMNLPDIR)/dev/dev.$(LANGUAGE_INITCAP).gold.conll
TRAIN=$(EMNLPDIR)/train/train.$(LANGUAGE_INITCAP).gold.exclusive.conll
TEST=$(EMNLPDIR)/train5k/train5k.$(LANGUAGE_INITCAP).gold.conll
all: result.$(TASK_IDENTIFIER).tar.gz
5-fold: result.$(TASK_IDENTIFIER).5-fold.tar.gz
# Extract maltparser, maltoptimizer, and malteval
maltbundle.$(TASK_IDENTIFIER).task: maltbundle.tar.gz
rm -rf $@
mkdir $@
tar -xzvf maltbundle.tar.gz -C $@
# Run your experiment
result.$(TASK_IDENTIFIER).tar.gz: ${DEV} maltbundle.$(TASK_IDENTIFIER).task
make -C maltbundle.$(TASK_IDENTIFIER).task/bundle DEV=${DEV} TRAIN=${TRAIN} TEST=${TEST}
rm -r maltbundle.$(TASK_IDENTIFIER).task
mv -n result.tar.gz $@
# Run your experiment
result.$(TASK_IDENTIFIER).5-fold.tar.gz: ${DEV} maltbundle.$(TASK_IDENTIFIER).task
make -C maltbundle.$(TASK_IDENTIFIER).task/bundle DEV=${DEV} TRAIN=${TEST} 5-fold
rm -r maltbundle.$(TASK_IDENTIFIER).task
mv -n result.tar.gz $@