This project now is updated, some rasa new features will be added soon.(项目已跟进到rasa新版本,一些新特性后面尝试后补充。)
A Chinese task oriented chatbot in IVR(Interactive Voice Response) domain, Implement by rasa nlu and rasa core. This is a demo with toy dataset.
install or update to python 3
pip install rasa_core
this command will install rasa nlu too.
pip install -U scikit-learn sklearn-crfsuite
pip install git+https://github.com/mit-nlp/MITIE.git
1. 训练NLU
python -m rasa_nlu.train --data ./data/hr_nlu_data.json --config hr_chatbot_config.yml --path projects --fixed_model_name demo --project hr_nlu
2. 训练dialogue
python -m bot_before.train-dialogue
1. 直接测试
python -m rasa_core.run -d projects/dialogue -u projects/hr_nlu/demo
2. chatroom测试
cd C:\Users\xingxf03\AI\NLP\chatbot\hr_chatbot\chatroom
yarn serve
cd C:\Users\xingxf03\AI\NLP\chatbot\hr_chatbot
python -m utils.bot -d projects/dialogue -u projects/hr_nlu/demo