-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (29 loc) · 1.21 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
.PHONY: clean train-nlu train-core cmdline server
TEST_PATH=./
help:
@echo " clean"
@echo " Remove python artifacts and build artifacts."
@echo " train-nlu"
@echo " Trains a new nlu model using the projects Rasa NLU config"
@echo " train-core"
@echo " Trains a new dialogue model using the story training data"
@echo " action-server"
@echo " Starts the server for custom action."
clean:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
rm -rf build/
rm -rf dist/
rm -rf *.egg-info
rm -rf docs/_build
train-nlu:
python3 -m rasa_nlu.train -c nlu_config.yml --data data/nlu_data.md -o models --fixed_model_name nlu --project current --verbose
train-core:
python3 -m rasa_core.train -d domain.yml -s data/stories.md -o models/current/dialogue --epochs 200
cmdline:
python3 -m rasa_core.run -d models/current/dialogue -u models/current/nlu --endpoints endpoints.yml
action-server:
python3 -m rasa_core_sdk.endpoint --actions actions --port 5056
run:
python3 -m rasa_core.run -d models/current/dialogue/ -u models/current/nlu --port 5055 --connector rocketchat --credentials credentials.yml --endpoints endpoints.yml