-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathmakefile
42 lines (34 loc) · 1.29 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
.PHONY: clean setupbot checkbot startbot runbot
setupbot:
pip uninstall --yes rasa_nlu
pip uninstall --yes rasa_core
pip install rasa_nlu
pip install rasa_nlu[spacy]
python3 -m spacy download en_core_web_md --force
python3 -m spacy link en_core_web_md en --force
pip install rasa_core
pip uninstall --yes rasa_core_sdk
pip install rasa_core_sdk
pip install beautifulsoup4
pip install pandas
pip install Flask-Mail
checkbot:
python3 -c "import rasa_nlu; print('**** Rasa NLU Version: ',rasa_nlu.__version__)"
python3 -c "import rasa_core; print('**** Rasa Core Version: ',rasa_core.__version__)"
python3 -c "import rasa_core_sdk; print('**** Rasa SDK Version: ',rasa_core_sdk.__version__)"
train-nlu:
python3 nlu_model.py
train-core:
python3 train_init.py
start-action-server:
python3 -m rasa_core_sdk.endpoint --actions actions
kill-action-server:
kill -9 $$(lsof -ti :5055) || true
runbot:
make train-nlu
make train-core
make kill-action-server
make start-action-server&
python3 -m rasa_core.run --nlu models/nlu/default/restaurantnlu --core models/dialogue --endpoints endpoints.yml
trainbot:
python3 -m rasa_core.train interactive -o models/dialogue -d restaurant_domain.yml -c policies.yml -s data/stories.md --nlu models/nlu/default/restaurantnlu --endpoints endpoints.yml