首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >ImportError:无法为RASA交互式learning.Incompatible提示符导入名称“style_from_dict”-工具箱版本

ImportError:无法为RASA交互式learning.Incompatible提示符导入名称“style_from_dict”-工具箱版本
EN

Stack Overflow用户
提问于 2019-01-11 11:48:06
回答 1查看 647关注 0票数 0

我试图训练的对话流使用互动学习在Rasa核心使用木星笔记本电脑。

代码片段:

代码语言:javascript
复制
### interactive learning 
import logging
from rasa_core import utils, train
from rasa_core.training import interactive

logger = logging.getLogger(__name__)

def train_agent():
    return train.train_dialogue_model(domain_file="domain.yml",
                                      stories_file="data/stories.md",
                                      output_path="models/dialogue",
                                      policy_config='policy_config.yml'
                                      )

if __name__ == '__main__':
    utils.configure_colored_logging(loglevel="INFO")
    agent = train_agent()
    logger.info("This example does not include NLU data."
                "Please specify the desired intent with a preceding '/', e.g."
                "'/greet' .")
    interactive.run_interactive_learning(agent)

最初我得到的是:

指向“从prompt_toolkit.token导入令牌”的“令牌未找到错误”

我降级为prompt_toolkit==1.0.14,并尝试运行代码。

得到:

ImportError:无法导入名称“style_from_dict”

我觉得prompt_toolkitrasa-coreipython中有一个版本不兼容。目前使用的是rasa-core==0.12.3ipython==7.2.0

我需要降低IPython的评级吗?请建议一下。

EN

回答 1

Stack Overflow用户

发布于 2019-01-14 09:15:41

这些错误在降级到ipython 6.0.0后得到了解决。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/54145936

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档