【问题标题】:Cannot execute this command “rasa run actions & rasa shell”无法执行此命令“rasa run actions & rasa shell”
【发布时间】:2021-06-04 00:41:03
【问题描述】:

使用 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

【问题讨论】:

    标签: rasa-nlu rasa-core rasa


    【解决方案1】:

    在 PowerShell 中,您可以使用分号来运行 2 个命令(注意它应该是 rasa 运行操作):

    rasa shell; rasa run actions
    

    在 cmd 中你仍然可以使用 & 符号。

    但是,这不适用于顺序运行命令的 Windows。一种解决方案是为每个命令设置一个终端会话(您也不要混淆日志,如果需要,可以只重新启动一个)

    【讨论】:

      【解决方案2】:

      您正在尝试在 shell 上运行 2 个不同的命令。 shell 不知道“&”。

      Rasa run 命令用于在 localhost:5005 上将 rasa 框架作为服务器运行

      rasa shell 用于在终端的聊天机器人上运行,服务器会自动启动。

      我希望在 2 个不同的 shell 中运行命令以减少调试混乱

      【讨论】:

        猜你喜欢
        • 2020-11-07
        • 2021-05-12
        • 1970-01-01
        • 1970-01-01
        • 2020-05-01
        • 1970-01-01
        • 1970-01-01
        • 2019-06-07
        • 1970-01-01
        相关资源
        最近更新 更多