无法执行 "rasa run actions & rasa shell "这个命令。

问题描述 投票:0回答:1

使用 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个回答
2
投票

在PowerShell中,你可以使用分号来运行两个命令(注意应该是rasa run actions)。

rasa shell; rasa run actions

在cmd中你仍然可以使用安培符.

然而,这在Windows中是行不通的,因为命令是按顺序运行的。一个解决方案是为每个命令建立一个终端会话(你也不会混淆日志,如果你需要的话,可以只重启一个)。

© www.soinside.com 2019 - 2024. All rights reserved.