-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (36 loc) · 1.71 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
RUN_DEP = fastText/fasttext ./exceptions.py ./preprocessors/__init__.py ./preprocessors/featurematrixconversion.py ./preprocessors/mutualinformation.py ./preprocessors/featureselectionbase.py ./preprocessors/dumpfasttext.py ./preprocessors/chisquare.py ./preprocessors/preprocessingbase.py ./my_statistics.py ./classifiers/__init__.py ./classifiers/baseline.py ./classifiers/fasttext.py ./classifiers/classifierbase.py ./classifiers/naivebayes.py ./utils.py ./load_data.py ./process_data.py
DATA_GEN_DEP = ./denormalization/extract_ids.py ./denormalization/filter.py ./denormalization/join.py
EXPS = $(basename $(wildcard experiments/*yaml))
EXPS_SAM = $(addsuffix .samp,$(EXPS))
data/data.json data/ids: $(DATA_GEN_DEP)
# run denormalize
./denormalization/denormalize.sh ../data/dataset data/data.json data/ids
data/geneea.json: data/ids $(DATA_GEN_DEP)
# run geenea
echo 'Copy geneea.json data into `data/`, source ids are in `data/ids`'
echo 'Continue with enter.'
read
$(EXPS): data/data.json data/geneea.json $(RUN_DEP)
mkdir -p graphs
./process_data.py '[email protected]' data/data.json data/geneea.json
run: $(EXPS)
run_sample: $(EXPS_SAM)
$(EXPS_SAM): data/data_sample.json data/geneea_sample.json $(RUN_DEP)
mkdir -p graphs
./process_data.py '$(basename $@).yaml' data/data_sample.json data/geneea_sample.json
clean:
rm -f data/data_fasttext_model.{bin,vec} data/data_fasttext_train
rm -r fastText
fastText/fasttext:
wget https://github.com/facebookresearch/fastText/archive/v0.2.0.zip
unzip v0.2.0.zip
mv fastText-0.2.0 fastText
cd fastText && make
rm -f v0.2.0.zip
test:
./run_unittests.sh
thesis.pdf:
cd diplomky/en && make
all: run thesis.pdf
.DEFAULT: all
.PHONY: all run run_sample clean $(EXPS) $(EXPS_SAM)