-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmakefile
28 lines (22 loc) · 863 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
compose := "docker-compose.yaml"
start:
docker-compose -f ${compose} build
docker-compose -f ${compose} up
init:
docker exec -it notebook bash
clear
echo "Welcpme to container"
prepare:
python3 init-docker.py
python3 notebook/prepare_dataset.py
clear
@echo "Dataset prepared!"
mallet:
mallet/mallet-2.0.8/bin/mallet import-dir --input ./output/so_data/ --output ./output/so.mallet --keep-sequence --remove-stopwords
mallet/mallet-2.0.8/bin/mallet train-topics --random-seed 100 --input ./output/so.mallet --num-topics 15 --optimize-interval 20 --output-state ./output/so-topic-state.gz --output-topic-keys ./output/so_keys.txt --output-doc-topics ./output/so_composition.txt --diagnostics-file ./output/so_results/so_diagnostics.xml
clear
@echo "Dataset prepared!"
results:
python3 notebook/manage_results.py
clear
@echo "Dataset prepared!"