使用rasa init
创建一个新的rasa助手时,出现以下界面。退出后,可以从命令行运行什么命令以返回该界面?有时候,我宁愿只使用cmd界面,而不是运行rasa x
并使用浏览器。
? Do you want to speak to the trained assistant on the command line? ? Yes
2020-11-03 10:01:30 INFO root - Connecting to channel 'cmdline' which was specified by the '--connector' argument. Any other channels will be ignored. To connect to all given channels, omit the '--connector' argument.
2020-11-03 10:01:30 INFO root - Starting Rasa server on http://localhost:5005
2020-11-03 10:01:32 INFO root - Rasa server is up and running.
Bot loaded. Type a message and press enter (use '/stop' to exit):
Your input -> hi
Hey! How are you?
Your input -> good
Great, carry on!
Your input -> I am sad
Great, carry on!
Your input -> hi
Hey! How are you?
Your input -> bad
Here is something to cheer you up:
Image: https://i.imgur.com/nGF1K8f.jpg
Did that help you?
Your input -> /stop
2020-11-03 10:02:38 INFO root - Killing Sanic server now.
答案 0 :(得分:1)
因此,在运行rasa init
之后,现在您已经准备好项目,并且模型已经训练完毕。要恢复该界面,请在命令行界面中运行rasa shell
,这将加载经过训练的模型,并允许您在命令行上与助手对话。
答案 1 :(得分:1)
为了后代,我想补充一个答案。在运行rasa train nlu
(创建仅NLU模型)之前,我一直在做rasa shell
。
要能够在命令行与助手对话,我需要先运行rasa train
,然后运行rasa shell
。