阿里用过这个,贝壳也在用这个。
创建一个虚拟环境,然后这两句话就可以创建智能会话的工程
python3 -m venv env
source env/bin/activate
pip install rasa-x --extra-index-url https://pypi.rasa.com/simple
rasa init
使用的命令:
$ rasa
usage: rasa [-h] [--version]
{init,run,shell,train,interactive,test,visualize,data,x} ...
Rasa command line interface. Rasa allows you to build your own conversational
assistants ??. The 'rasa' command allows you to easily run most common commands
like creating a new bot, training or evaluating models.
positional arguments:
{init,run,shell,train,interactive,test,visualize,data,x}
Rasa commands
init Creates a new project, with example training data,
actions, and config files.
run Starts a Rasa server with your trained model.
shell Loads your trained model and lets you talk to your
assistant on the command line.
train Trains a Rasa model using your NLU data and stories.
interactive Starts an interactive learning session to create new
training data for a Rasa model by chatting.
test Tests Rasa models using your test NLU data and
stories.
visualize Visualize stories.
data Utils for the Rasa training files.
目录结构是这样的:
原文:https://www.cnblogs.com/xuehuiping/p/12207490.html