-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (23 loc) · 908 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
download:
@echo "Downloading and unzipping dataset..."
curl -L -o telegram_dataset.zip https://lab-bucket-for-uab.s3.amazonaws.com/telegram_dataset.zip
@echo "Download complete."
@echo "Unzipping dataset..."
unzip telegram_dataset.zip -d semantic_extraction/
install:
@echo "Installing dependencies..."
pdm sync --prod
@echo "Done."
init: download install
train:
@echo "Training model..."
bash train-pua-channels.sh
@echo "Done."
validate:
@echo "Testing model..."
pdm run python semantic_extraction/validate.py --model semantic_extraction/models/pua-channels-all-w2v-model.model -T fraud_terms -t pua --top-n 200
@echo "Done."
test-emerging:
@echo "Testing model..."
pdm run python semantic_extraction/emerging.py -m1 semantic_extraction/models/pua-channels-210701-210801-w2v-model.model -m2 semantic_extraction/models/pua-channels-210901-211001-w2v-model.model -t pua
@echo "Done."