使用Rasa开源,我试图执行(Windows Powershell)这个命令rasa run action & rasa shell,它产生了一些错误,如下所示:
At line:1 char:17
+ rasa run action & rasa shell
+ ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to
pass it as part of a string.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : AmpersandNotAllowed发布于 2020-05-20 14:48:40
在PowerShell中,您可以使用分号来运行两个命令(请注意,它应该是rasa运行操作):
rasa shell; rasa run actions在cmd中,你仍然可以使用“与”符号。
然而,这在Windows上不起作用,因为Windows中的命令是按顺序运行的。一种解决方案是每个命令都有一个终端会话(您也不会混淆日志,如果需要,只能重新启动一个)
发布于 2021-06-04 00:41:04
您正尝试在shell上运行两个不同的命令。shell不知道"&“。
Rasa run命令用于在localhost:5005上将rasa框架作为服务器运行
鉴于
在终端的聊天机器人上使用rasa shell运行,服务器会自动启动。
我更喜欢在2个不同的shell中运行该命令,以减少调试混乱
https://stackoverflow.com/questions/61903298
复制相似问题