Coder Social home page Coder Social logo

chitchatassistant's Introduction

RASA中文聊天机器人项目


RASA 开发中文指南系列博文:

注:本系列博客翻译自Rasa官方文档,并融合了自己的理解和项目实战,同时对文档中涉及到的技术点进行了一定程度的扩展,目的是为了更好的理解Rasa工作机制。与本系列博文配套的项目GitHub地址:ChitChatAssistant,欢迎starissues,我们共同讨论、学习!


1. 安装rasa

1.1 环境要求

  • python 3.6 +
  • mitie
  • jieba

1.2 安装步骤

1. 安装rasa

# 当前版本为1.9.5
# 该命令运行时间较长,会安装完所有的依赖
pip --default-timeout=500 install -U rasa

2. 安装mitie

# 在线安装Mitie
pip install git+https://github.com/mit-nlp/MITIE.git
pip install rasa[mitie]  # 注:由于第一步始终没成功过,没尝试过这个命令的意义

 由于自己在线安装尝试了很多次都拉不下来,因此只能走离线安装的方式,有三个步骤:

  • 首先,下载MITIE源码和中文词向量模型total_word_feature_extractor_zh.dat(密码:p4vx),这里需要将该模型拷贝到创建的python项目data目录下(可任意位置),后面训练NLU模型时用到;

  • 其次,安装Visual Studio 2017 ,需要勾选“用于 CMake 的 Visual C++ 工具”,因为编译MITIE源码需要Cmake和Visual C++环境。安装完毕后,将C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin添加到环境变量中,再重启电脑使之生效;

  • 从Pycharm的命令终端进行Mitie源码根目录,执行下面的命令:

    python setup.py build
    python setup.py install

3. 安装jieba

# 安装Jieba中文分词
pip install jieba

2. 训练模型

 当所有样本和配置文件准备好后,接下来就是训练模型了,打开命令终端执行下面的命令,该命令会同时训练NLU和Core模型。

  • 使用MITIE
python -m rasa train --config configs/config.yml --domain configs/domain.yml --data data/
  • 使用Supervised_Embedding
python -m rasa train --config configs/zh_jieba_supervised_embeddings_config.yml --domain configs/domain.yml --data data/
  • 使用MITIE+Supervised_Embedding
python -m rasa train --config configs/zh_jieba_mitie_embeddings_config.yml --domain configs/domain.yml --data data/

3. 运行服务

(1)启动Rasa服务

 在命令终端,输入下面命令:

# 启动rasa服务
# 该服务实现自然语言理解(NLU)和对话管理(Core)功能
# 注:该服务的--port默认为5005,如果使用默认则可以省略
python -m rasa run --port 5005 --endpoints configs/endpoints.yml --credentials configs/credentials.yml --debug

(2)启动Action服务

在命令终端,输入下面命令:

# 启动action服务
# 注:该服务的--port默认为5055,如果使用默认则可以省略
Python -m rasa run actions --port 5055 --actions actions --debug 

(3)启动server.py服务

python server.py

Rasa ServerAction ServerServer.py运行后,在浏览器输入测试:

http://127.0.0.1:8088/ai?content=查询广州明天的天气

终端调用效果为:

4. 更新日志

(1)V1.0.2020.02.15

  • 创建项目,模型训练成功;
  • 前端访问Rasa服务器正常响应;
  • 对接图灵闲聊机器人、心知天气API,便于测试;

(2)V1.1.2020.02.27

  • 优化NLU样本,尝试使用同义词、正则、查找表;
  • 改进supervised_embeddings,实体提取和意图识别明显提高,训练速度加快很多;
  • 完成Rasa中文聊天机器人开发指南(2):NLU篇文章撰写;

(3)V1.2.2020.04.10

  • 使用Interactive Learning构建样本;
  • 新增MITIE+supervised_embeddings管道,并训练相应的模型;
  • 新增身份查询案例;
  • 将Rasa版本升级到1.9.5,解决win10使用tensorflow出现的异常(详见入门篇);
  • 完成Rasa中文聊天机器人开发指南(3):Core篇文章撰写;

5. License

Copyright 2020 Jiangdongguo

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

chitchatassistant's People

Contributors

jiangdongguo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chitchatassistant's Issues

槽位提取错误,将整个问句短语识别成一个槽位实体

你好,
如题,下载你的项目,没有修改,按readme运行后,槽位提取都是错的,比如查询:
http://127.0.0.1:8088/ai?content=查一下19862618425
模型将整段话识别成number实体:
image

还有,槽位提取能力比较差,比如查询:
我要查下电话号19822618425
image

这两个问题都是你的训练数据中的,感觉是实体抽取模型出问题了。请问这可能是什么原因造成的?
环境:win10+最新版的rasa

required_slots必填槽似乎不起作用

class WeatherForm(FormAction):

def name(self) -> Text:
    """Unique identifier of the form"""

    return "weather_form"

@staticmethod
def required_slots(tracker: Tracker) -> List[Text]:
    """A list of required slots that the form has to fill"""

    return ["date-time", "address"]

hi 作者您好 麻烦您有时间给我答疑一下story中加不加form的区别

interactive_story_1

天气 + 时间 + 地点 + 时间

  • request_weather
    • weather_form
    • form{"name": "weather_form"}
    • slot{"requested_slot": "date_time"}
  • form: inform{"date_time": "明天"}
    • form: weather_form
    • slot{"date_time": "明天"}
    • slot{"requested_slot": "address"}
  • form: inform{"address": "广州"}
    • form: weather_form
    • slot{"address": "广州"}
    • form{"name": null}
    • slot{"requested_slot": null}
  • inform{"address": "上海"} OR request_weather{"address": "深圳"}
    • weather_form
    • form{"name": "weather_form"}
    • slot{"date_time": "明天"}
    • slot{"address": "广州"}
    • slot{"address": "上海"}
    • form{"name": null}
    • slot{"requested_slot": null}
  • affirm
    • utter_answer_affirm
      hi 作者您好 将上面* form: inform{"date_time": "明天"}这一行改成 inform{"date_time": "明天"}这个有影响吗 一直没有明白您有时候这样写 form: inform{"address": "广州"} 有时候又这样写 inform{"address": "上海"} OR request_weather{"address": "深圳"},这两句话前面一句话带上了form 后面一句话没有带上 没有明白加不加form的区别是啥

运行 python -m rasa train --config configs\zh_jieba_supervised_embeddings_config.yml --domain configs\domain.yml --data data 出现错误

大神们好,想请问下我在执行这条语句的时候python -m rasa train --config configs\zh_jieba_supervised_embeddings_config.yml --domain configs\domain.yml --data data
出现了下列错误:
YamlValidationException: Failed to validate 'E:\项目\wxChatBot\configs\domain.yml'. Please make sure the file is correct and all mandatory parameters are specified. Here are the errors found during validation:
in E:\项目\wxChatBot\configs\domain.yml:22:
Cannot find required key 'mappings'. Path: '/slots/date_time'
in E:\项目\wxChatBot\configs\domain.yml:25:
Cannot find required key 'mappings'. Path: '/slots/address'
in E:\项目\wxChatBot\configs\domain.yml:28:
Cannot find required key 'mappings'. Path: '/slots/type'
in E:\项目\wxChatBot\configs\domain.yml:31:
Cannot find required key 'mappings'. Path: '/slots/number'
in E:\项目\wxChatBot\configs\domain.yml:34:
Cannot find required key 'mappings'. Path: '/slots/business'
in E:\项目\wxChatBot\configs\domain.yml:60:
Value '['weather_form', 'number_form']' is not a dict. Value path: '/forms'
应该如何解决

老哥,你知道为什么我照着你的博客弄的但是返回的数据就很有问题,每次刷新都会有在后面家一个大字典

[{
"recipient_id": "zengfy",
"text": "utter_default"
}, {
"recipient_id": "zengfy",
"image": {
"active_form": {},
"events": [{
"event": "action",
"timestamp": 1583046260.1370728016,
"name": "action_session_start",
"policy": null,
"confidence": null
}, {
"event": "session_started",
"timestamp": 1583046260.1370811462
}, {
"event": "action",
"timestamp": 1583046260.137098074,
"name": "action_listen",
"policy": null,
"confidence": null
}, {
"event": "user",
"timestamp": 1583046260.792427063,
"text": "你好",
"parse_data": {
"intent": {
"name": "greet",
"confidence": 0.286620277
},
"entities": [],
"intent_ranking": [{
"name": "greet",
"confidence": 0.286620277
}, {
"name": "goodbye",
"confidence": 0.2353494963
}, {
"name": "affirm",
"confidence": 0.1272789458
}, {
"name": "thanks",
"confidence": 0.1205339167
}, {
"name": "deny",
"confidence": 0.1014783615
}, {
"name": "whoareyou",
"confidence": 0.0583820056
}, {
"name": "request_weather",
"confidence": 0.0503668449
}, {
"name": "whattodo",
"confidence": 0.0199901522
}],
"text": "你好"
},
"input_channel": "rest",
"message_id": "d1936ca7aff34388bd33744260fea3d3",
"metadata": {}
}],
"followup_action": null,
"latest_action_name": "action_listen",
"latest_message": {
"intent": {
"name": "greet",
"confidence": 0.286620277
},
"entities": [],
"intent_ranking": [{
"name": "greet",
"confidence": 0.286620277
}, {
"name": "goodbye",
"confidence": 0.2353494963
}, {
"name": "affirm",
"confidence": 0.1272789458
}, {
"name": "thanks",
"confidence": 0.1205339167
}, {
"name": "deny",
"confidence": 0.1014783615
}, {
"name": "whoareyou",
"confidence": 0.0583820056
}, {
"name": "request_weather",
"confidence": 0.0503668449
}, {
"name": "whattodo",
"confidence": 0.0199901522
}],
"text": "你好"
},
"sender_id": "zengfy",
"slots": {
"address": null,
"business": null,
"date-time": null,
"phone_number": null,
"requested_slot": null
}
}
}]

我用mitie训练模型没报错为什么生成不了文件

执行python -m rasa train --config configs/config.yml --domain configs/domain.yml --data data/命令
terminal:
Processed trackers: 100%|█████████████████████████████████████████████████████████████████████████████████
████████████████████████████████| 64/64 [00:00<00:00, 219.91it/s, # actions=128]
2020-06-10 09:53:33 INFO rasa.core.agent - Persisted model to 'C:\Users\ADMINI1\AppData\Local\Temp\tmpslhpch1h\core'
Core model training completed.
Training NLU model...
2020-06-10 09:53:38 INFO rasa.nlu.components - Added 'MitieNLP' to component cache. Key 'MitieNLP-D:\ChitChatAssistant-master\data\total_word_feature_extractor.dat'.
2020-06-10 09:53:38 INFO rasa.nlu.tokenizers.jieba_tokenizer - Loading Jieba User Dictionary at data/dict\userdict.txt
Building prefix dict from the default dictionary ...
Loading model from cache C:\Users\ADMINI
1\AppData\Local\Temp\jieba.cache
Loading model cost 0.770 seconds.
Prefix dict has been built successfully.
2020-06-10 09:53:39 INFO rasa.nlu.training_data.training_data - Training data stats:
2020-06-10 09:53:39 INFO rasa.nlu.training_data.training_data - Number of intent examples: 309 (13 distinct intents)
2020-06-10 09:53:39 INFO rasa.nlu.training_data.training_data - Found intents: 'inform', 'greet', 'stop', 'goodbye', 'inform_business', 'chitchat', 'whattodo', 'affirm', 'thanks',
'request_weather', 'request_number', 'deny', 'whoareyou'
2020-06-10 09:53:39 INFO rasa.nlu.training_data.training_data - Number of response examples: 0 (0 distinct responses)
2020-06-10 09:53:39 INFO rasa.nlu.training_data.training_data - Number of entity examples: 155 (5 distinct entities)
2020-06-10 09:53:39 INFO rasa.nlu.training_data.training_data - Found entity types: 'business', 'type', 'date_time', 'number', 'address'
2020-06-10 09:53:39 INFO rasa.nlu.model - Starting to train component MitieNLP
2020-06-10 09:53:39 INFO rasa.nlu.model - Finished training component.
2020-06-10 09:53:39 INFO rasa.nlu.model - Starting to train component JiebaTokenizer
2020-06-10 09:53:39 INFO rasa.nlu.model - Finished training component.
2020-06-10 09:53:39 INFO rasa.nlu.model - Starting to train component MitieEntityExtractor
C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\rasa\utils\common.py:351: UserWarning: Failed to use example '查询电话19862618425' to train MITIE entity ex
tractor. Example will be skipped.Error: Invalid entity {'start': 2, 'end': 4, 'value': '电话', 'entity': 'type'} in example '查询电话19862618425': entities must span whole tokens. Wrong e
ntity start.
C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\rasa\utils\common.py:351: UserWarning: Failed to use example '我想了解开房记录' to train MITIE entity extra
ctor. Example will be skipped.Error: Invalid entity {'start': 4, 'end': 8, 'value': '开房记录', 'entity': 'business'} in example '我想了解开房记录': entities must span whole tokens. Wrong
entity start.
Training to recognize 5 labels: 'type', 'number', 'business', 'date_time', 'address'
Part I: train segmenter
words in dictionary: 200000
num features: 271
now do training
C: 20
epsilon: 0.01
num threads: 1
cache size: 5
max iterations: 2000
loss per missed segment: 3
C: 20 loss: 3 0.931217
C: 35 loss: 3 0.931217
C: 20 loss: 4.5 0.94709
C: 5 loss: 3 0.936508
C: 20 loss: 1.5 0.925926
C: 18.1395 loss: 5.98842 0.94709
C: 25.2331 loss: 5.03726 0.94709
C: 17.8806 loss: 4.50912 0.94709
C: 18.709 loss: 4.85208 0.94709
C: 20 loss: 4.35 0.94709
C: 21.7862 loss: 4.44297 0.94709
C: 20.5424 loss: 4.41599 0.941799
best C: 20
best loss: 4.5
num feats in chunker model: 4095
train: precision, recall, f1-score: 0.989529 1 0.994737
Part I: elapsed time: 38 seconds.

Part II: train segment classifier
now do training
num training samples: 191
C: 200 f-score: 0.98081
C: 400 f-score: 0.98081

应该这样生成成功了吧 但是在models文件中没有生成文件

mitie下载太慢

你好,mitie的下载速度过慢,你能把你下载的文件,也上传一份放到百度网盘吗

运行“RASA X” 出错

运行环境:MAC OSX
我克隆这个项目到本地,按照指引运行成功, 然后我尝试运行“rasa x --config configs/config.yaml", 出错,系统提示“This directory is not a valid Rasa project. Use 'rasa init' to create a new Rasa project or switch to a valid Rasa project directory (see http://rasa.com/docs/rasa/user-guide/rasa-tutorial/#create-a-new-project).“

请问,解决方法除了将项目迁移到用”rasa init"创建出来的项目之外,还有什么其他的方案

怎么解决:Could not load model due to Failed to load TED policy model. Path '/tmp/tmpw1uns63j/core/policy_0_TEDPolicy' doesn't exist..

python -m rasa train --config configs/config.yml --domain configs/domain.yml --data data/
解决这个问题后InvalidPolicyConfig: Module for policy 'KerasPolicy' could not be loaded. Please make sure the name is a valid policy.,出现的新问题Could not load model due to Failed to load TED policy model. Path '/tmp/tmpw1uns63j/core/policy_0_TEDPolicy' doesn't exist..

错误显示Failed to extract slot phone_number with action phone_form

所有的训练都按照文章要求来的,但是在输入input“话费“和”天气“之后,均显示Failed to extract slot phone_number with action phone_form。
image
因为是在服务器上跑,所有没有用server.py,用的是rasa shell --endpoints configs/endpoints.yml 请问是什么原因,谢谢!

断点调试代码

Python -m rasa run actions --port 5055 --actions actions --debug
这句shell如果想转化为py脚本的话,该怎么写呢,如果每次都是shell启动没有办法用idea断点调试啊

domain.yml文件中的变量问题

domain.yml中
utter_wrong_business:
- text: "当前还不支持{business}业务,请重新输入。"

utter_wrong_type:
- text: "当前还不支持查询{type}。"

utter_wrong_number:
- text: "您输入的{number}有误,请重新输入。"
{business} {type} {number} 是引用那个number_nlu.md文件嘛 可是nlu文件不是放问题的嘛 我试了一下接口跑起来

http://127.0.0.1:8088/ai?content=查下住宿信息
[{"recipient_id":"jiangdg","text":"你要查询电话号码为19860618422的开房信息为:balabalabalabalabala。"}]
得到的是这个结果 不是很理解

rasa train 的时候出现了问题

File "/home/ml/.conda/envs/rasa2/lib/python3.6/site-packages/rasa/core/channels/slack.py", line 11, in <module> from slack import WebClient ImportError: cannot import name 'WebClient'
但是我的版本是没问题的
slack 0.0.2 <pip> slackclient 2.5.0 <pip>
求解 怎么处理

小白一枚,请教在rasa2中,命令rasa shell 进行人机交互,运行出现:Encountered an exception while running action 'action_default_fallback'.想问一下问题出现的原因及解决方法,感谢!!!

Uploading image.png…
Your input -> 你好 您好!请问我可以帮到您吗? Your input -> 你有什么功能呢 您好!很高兴为您服务,我目前只支持查询天气哦。 Your input -> 查询广州今天天气 2021-02-04 10:56:12 ERROR rasa.core.processor - Encountered an exception while running action 'weather_form'.Bot will continue, but the actions events are lost. Please check the logs of your action server for more information. Traceback (most recent call last): File "c:\users\ly-jiangyf\appdata\local\continuum\anaconda3\envs\tf_cpu\lib\site-packages\rasa\core\processor.py", line 751, in _run_action output_channel, nlg, temporary_tracker, self.domain File "c:\users\ly-jiangyf\appdata\local\continuum\anaconda3\envs\tf_cpu\lib\site-packages\rasa\core\actions\action.py", line 658, in run f"Failed to execute custom action '{self.name()}' " rasa.shared.exceptions.RasaException: Failed to execute custom action 'weather_form' because no endpoint is configured to run this custom action. Please take a look at the docs and set an endpoint configuration via the --endpoints flag. https://rasa.com/docs/rasa/custom-actions Your input -> 我心情不好 2021-02-04 11:08:43 ERROR rasa.core.processor - Encountered an exception while running action 'action_default_fallback'.Bot will continue, but the actions events are lost. Please check the logs of your action server for more information. Traceback (most recent call last): File "c:\users\ly-jiangyf\appdata\local\continuum\anaconda3\envs\tf_cpu\lib\site-packages\rasa\core\processor.py", line 751, in _run_action output_channel, nlg, temporary_tracker, self.domain File "c:\users\ly-jiangyf\appdata\local\continuum\anaconda3\envs\tf_cpu\lib\site-packages\rasa\core\actions\action.py", line 658, in run f"Failed to execute custom action '{self.name()}' " rasa.shared.exceptions.RasaException: Failed to execute custom action 'action_default_fallback' because no endpoint is configured to run this custom action. Please take a look at the docs and set an endpoint configuration via the --endpoints flag. https://rasa.com/docs/rasa/custom-actions Your input ->

请教一下第一次模型训练需要多久

各位大佬请问一下,你们第一次训练模型用了多久?机器配置是怎样的?

python -m rasa train --config configs/config.yml --domain configs/domain.yml --data data/

如何给一个实体设置多个槽值

比如 创建群组的时候 需要加入多个人 如果没有一次性输完 应该如何 修改form或者story来继续添加呢?请问有没有好的建议?

浏览器输入url后终端报错:exceptions.NotFound: Requested URL /ai not found

Exception occurred while handling uri: 'http://127.0.0.1:5055/ai?content=%E8%AF%A2%E6%B4%9B%E9%98%B3%E6%98%8E%E5%A4%A9%E7%9A%84%E5%A4%A9%E6%B0%94'
Traceback (most recent call last):
File "/Library/Python/3.7/site-packages/sanic/app.py", line 940, in handle_request
handler, args, kwargs, uri, name = self.router.get(request)
File "/Library/Python/3.7/site-packages/sanic/router.py", line 411, in get
return self._get(request.path, request.method, "")
File "/Library/Python/3.7/site-packages/sanic/router.py", line 475, in _get
raise NotFound("Requested URL {} not found".format(url))
sanic.exceptions.NotFound: Requested URL /ai not found
Exception occurred while handling uri: unknown
NoneType: None

rasa_core安装出现问题

Could not find a version that satisfies the requirement tensorflow==1.13.0 (from versions: 2.2.0rc1, 2.2.0rc2, 2.2.0rc3, 2.2.0rc4, 2.2.0, 2.3.0rc0, 2.3.0rc1, 2.3.0rc2, 2.3.0)这个问题要怎么解决

我想问一下endpoints.yml文件的配置

我在endpoints.yml文件中配置了数据库的连接
action_endpoint:
url: "http://localhost:5055/webhook"

tracker_store:

MySQL

type: SQL
dialect: mysql+pymysql
url: 127.0.0.1:3306
db: rasa_db
username: root
password: 123456
record_exp: 60
我是这样配置的 我看见很多是配置mongodb的
我配置完了之后怎么调用数据库里的数据啊

训练的两个问题 一个能识别到答案 另一个识别不到答案

chitchat_nlu.md里的代码

intent:cs

  • 沈阳变压器集团生产的发生过缺陷的设备
  • 沈阳变压器集团
    domain.yml里代码
    responses:
    utter_answer_cs:
    • text: "沈阳变压器集团设备测试!"
      chitchat_stories.md里代码

say cs

http://127.0.0.1:8088/ai?content=沈阳变压器集团
[{"recipient_id":"jiangdg","text":"沈阳变压器集团设备测试!"}]

一条可以访问另一条访问不到
是我chitchat_stories.md配置的问题的嘛

jieba分词

请问如何使用jieba对语句进行分词。
在dict文件中应该如何设置
比如 提醒张三起床 如何将张三实体进行分词?

使用Supervised_Embedding训练时时间地点提取不正确

Ubuntu 20.04+Python3.7+Rasa 1.10+jieba 0.42.1
使用如下方式训练:
rasa train --config configs/zh_jieba_supervised_embeddings_config.yml --domain configs/domain.yml --data data/
训练完成后运行action,进入rasa shell
交互时依次输入:“哥们帮我查个天气呗”、“那就明天吧”、“就长沙”
从actions.py中调试得到:
Validating extracted slots: {'date_time': '那就明天吧'}
Validating extracted slots: {'address': '就长沙'}
问题处在哪里?

关于nlu.md数据集intent的一点疑问。

作者您好,我看你的项目是form类型的任务。

我想问的是
在weather_nlu.md 数据集中,为什么要定义 intent:request_weather 和 intent:inform 两个intent呢,我看这两个intent差不多一样的意思,可否合并成一个intent呢,有什么影响嘛。因为我觉得弄成一个intent的话,stories可以写的更简洁点。
number_nlu.md 类似。

谢谢

rasa visualize 数据可视化时报policy找不到的错误

Traceback (most recent call last):
File "/home/sundali/anaconda3/envs/chatbot/bin/rasa", line 8, in
sys.exit(main())
File "/home/sundali/anaconda3/envs/chatbot/lib/python3.6/site-packages/rasa/main.py", line 91, in main
cmdline_arguments.func(cmdline_arguments)
File "/home/sundali/anaconda3/envs/chatbot/lib/python3.6/site-packages/rasa/cli/visualize.py", line 38, in visualize_stories
args.config, args.domain, args.stories, args.nlu, args.out, args.max_history
File "uvloop/loop.pyx", line 1456, in uvloop.loop.Loop.run_until_complete
File "/home/sundali/anaconda3/envs/chatbot/lib/python3.6/site-packages/rasa/core/visualize.py", line 24, in visualize
policies = config.load(config_path)
File "/home/sundali/anaconda3/envs/chatbot/lib/python3.6/site-packages/rasa/core/config.py", line 28, in load
return PolicyEnsemble.from_dict(config_data)
File "/home/sundali/anaconda3/envs/chatbot/lib/python3.6/site-packages/rasa/core/policies/ensemble.py", line 273, in from_dict
"You didn't define any policies. "
rasa.core.policies.ensemble.InvalidPolicyConfig: You didn't define any policies. Please define them under 'policies:' in your policy configuration file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.