-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
28 lines (23 loc) · 1.46 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
all:
make setup-data
make setup-data-test
make setup-ngram
make setup-lexical
make setup-raw
setup-data:
-mkdir data
cd data && wget https://bitb-detection.s3.amazonaws.com/models/url-detection/dataset/Webpages_Classification_test_data.csv.zip && wget https://bitb-detection.s3.amazonaws.com/models/url-detection/dataset/Webpages_Classification_train_data.csv.zip && wget https://bitb-detection.s3.amazonaws.com/models/url-detection/dataset/malicious_phish.csv.zip && wget https://bitb-detection.s3.amazonaws.com/models/url-detection/dataset/lexical_dataset.csv && unzip '*.zip' && rm *.zip
setup-data-test:
-mkdir data/test
cd data/test && wget https://bitb-detection.s3.amazonaws.com/models/url-detection/dataset/benign-urldata.csv && wget https://bitb-detection.s3.amazonaws.com/models/url-detection/dataset/malicious-urldata.csv
setup-ngram:
-mkdir models
mkdir models/ngram
cd models/ngram && wget https://bitb-detection.s3.amazonaws.com/models/url-detection/ngram/ngram-1.joblib && wget https://bitb-detection.s3.amazonaws.com/models/url-detection/ngram/ngram-2.joblib && wget https://bitb-detection.s3.amazonaws.com/models/url-detection/ngram/ngram-3.joblib
setup-lexical:
-mkdir models
mkdir models/lexical
cd models/lexical && wget https://bitb-detection.s3.amazonaws.com/models/url-detection/lexical/lexical-forest.joblib
setup-raw:
-mkdir models
cd models && wget https://bitb-detection.s3.amazonaws.com/models/url-detection/raw.zip && unzip '*.zip' && rm *.zip