diff --git a/INSTALL.md b/INSTALL.md new file mode 100644 index 0000000..6634bec --- /dev/null +++ b/INSTALL.md @@ -0,0 +1,26 @@ + +## install dependency + +#### python3 +install or update to python 3 + +#### install chinese version of rasa nlu +``` +git clone https://github.com/crownpku/Rasa_NLU_Chi.git +cd rasa_nlu +pip install -r requirements.txt +python setup.py install +``` + +#### install sklearn and MITIE + +``` +pip install -U scikit-learn sklearn-crfsuite +pip install git+https://github.com/mit-nlp/MITIE.git +``` + +#### install rasa_core + +``` +pip install rasa_core +``` diff --git a/README.md b/README.md index 52d8a3c..d71e9bd 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,8 @@ # rasa_chatbot A Chinese task oriented chatbot in IVR(Interactive Voice Response) domain(电信ivr领域, 中文), Implement by rasa nlu and rasa core. This is a demo with toy dataset. -### requirements: -- python3 -- [rasa_nlu_chi](https://github.com/crownpku/rasa_nlu_chi) -- [rasa_core](https://github.com/RasaHQ/rasa_core) -- sklearn -- mitie [(you can install follow here)](https://nlu.rasa.ai/installation.html#section-backends) +### install dependency: +- [follow here](https://github.com/zqhZY/rasa_chatbot/blob/master/INSTALL.md) ### dir tree ``` @@ -34,6 +30,10 @@ python bot.py train-nlu ```bash python bot.py train-dialogue ``` +### train dialogue in online mode +``` +python bot.py online_train +``` ### test Run command below: