-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathMakefile
37 lines (25 loc) · 1.14 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
DATA_DIR=data/original-data
all: deps config extract
deps:
pip install -r requirements.txt
config:
sed 's?/data/username/aminer-network?'`pwd`'?' pipeline/config-example.py > pipeline/config.py
python verify_config.py
$(DATA_DIR)/AMiner-Paper.rar:
mkdir -p $(DATA_DIR)
wget http://arnetminer.org/lab-datasets/aminerdataset/AMiner-Paper.rar -P $(DATA_DIR)
$(DATA_DIR)/AMiner-Author.zip:
mkdir -p $(DATA_DIR)
wget http://arnetminer.org/lab-datasets/aminerdataset/AMiner-Author.zip -P $(DATA_DIR)
$(DATA_DIR)/AMiner-Author2Paper.zip:
mkdir -p $(DATA_DIR)
wget http://arnetminer.org/lab-datasets/aminerdataset/AMiner-Author2Paper.zip -P $(DATA_DIR)
dl: $(DATA_DIR)/AMiner-Paper.rar $(DATA_DIR)/AMiner-Author.zip $(DATA_DIR)/AMiner-Author2Paper.zip
$(DATA_DIR)/AMiner-Paper.txt:
bash unrar.sh $(DATA_DIR)/AMiner-Paper.rar $(DATA_DIR)
$(DATA_DIR)/AMiner-Author.txt:
unzip -o $(DATA_DIR)/AMiner-Author.zip -d $(DATA_DIR)
$(DATA_DIR)/AMiner-Author2Paper.txt:
unzip -o $(DATA_DIR)/AMiner-Author2Paper.zip -d $(DATA_DIR)
extract: dl $(DATA_DIR)/AMiner-Paper.txt $(DATA_DIR)/AMiner-Author.txt $(DATA_DIR)/AMiner-Author2Paper.txt
python verify_download.py