-
Notifications
You must be signed in to change notification settings - Fork 45
/
Makefile
58 lines (43 loc) · 1.77 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
50
51
52
53
54
55
56
57
58
help:
@echo " train-nlu"
@echo " Train the natural language understanding using Rasa NLU."
@echo " train-core"
@echo " Train a dialogue model using Rasa core."
@echo " run"
@echo " Runs the bot on the command line."
@echo " run-api"
@echo " Runs the bot as a server."
run:
make run-actions&
make run-core
run-api:
make run-actions&
make run-http
run-actions:
python -m rasa_core_sdk.endpoint --actions actions
run-core:
python -m rasa_core.run --nlu models/nlu/default/current --core models/dialogue --endpoints endpoints.yml
run-online:
python -m rasa_core.train --online -o models/dialogue -d mobile_domain.yml -s data/mobile_edit_story.md --endpoints endpoints.yml
run-http:
python -m rasa_core.run --enable_api -d models/dialogue -u models/nlu/default/current --endpoints endpoints.yml --auth_token gaoquan
run-nlu-server:
python -m rasa_nlu.server -c configs/nlu_model_config.yml --path models/nlu/
evaluate:
python -m rasa_core.evaluate -d models/dialogue -s data/mobile_edit_story.md
visualize:
python -m rasa_core.visualize -s data/mobile_edit_story.md -d mobile_domain.yml -o story_graph.png
train-nlu:
python bot.py train-nlu
train-core:
python bot.py train-dialogue
train-nlu-gao:
python bot.py train-nlu-gao
run-nlu-gao-server:
python -m rasa_nlu_gao.server -c configs/config_embedding_bilstm.yml --path models/nlu_gao/
compare-policy:
python -m rasa_core.train compare -c policy/attention_policy.yml policy/keras_policy.yml policy/embed_policy.yml \
-d mobile_domain.yml -s data/mobile_edit_story.md -o comparison_models/ --runs 3 --percentages \
0 10 20 30 50 60 70 80 90 100
evaluate-policy:
python -m rasa_core.evaluate compare -s data/mobile_edit_story.md --core comparison_models/ -o comparison_results/