问题标签 [chatterbot]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
126 浏览

python - 服务器上的 Python 主机聊天机器人

我想让我的聊天机器人在服务器上运行,同时允许与用户来回进行对话。我怎样才能做到这一点?

我正在考虑使用 pm2 将机器人作为服务运行,但是如果用户正忙于收听传入的请求,用户怎么能“连接”到这个机器人呢?

我需要这个 .py 模块与机器人一起作为单独的服务器工作吗?

以下是机器人代码,它几乎是 chatterbot 设置指南中的样板:

0 投票
1 回答
227 浏览

python - Chatterbot 未设置数据库名称

我正在尝试在 chatterbot 中为我的数据库设置名称。这是代码: -

我在这里参考了文档。sqlite3 数据库使用名称“db.sqlite3”创建。我想将此名称更改为代码中指定的“mydb.sqlite3”。

0 投票
1 回答
164 浏览

ibm-watson - 如何为特定领域的聊天机器人准备数据

我正在尝试制作一个聊天机器人。所有的聊天机器人都是由结构数据组成的。我查看了 Rasa、IBM watson和其他著名的机器人。有什么方法可以将非结构化数据转换为某种结构,可用于机器人训练?让我们考虑下面的段落-

Packaging unit A packaging unit is used to combine a certain quantity of identical items to form a group. The quantity specified here is then used when printing the item labels so that you do not have to label items individually when the items are not managed by serial number or by batch. You can also specify the dimensions of the packaging unit here and enable and disable them separately for each item.

It is possible to store several EAN numbers per packaging unit since these numbers may differ for each packaging unit even when the packaging units are identical. These settings can be found on the Miscellaneous tab: There are also two more settings in the system settings that are relevant to mobile data entry:

When creating a new item, the item label should be printed automatically. For this reason, we have added the option ‘Print item label when creating new storage locations’ to the settings. When using mobile data entry devices, every item should be assigned to a storage location, where an item label is subsequently printed that should be applied to the shelf in the warehouse to help identify the item faster.

如何从这样的数据中制作机器人,任何线索都将受到高度赞赏。谢谢!图片中的这个想法可行吗?只是一个想法

0 投票
1 回答
271 浏览

python - 如何在聊天机器人 python-flask 中返回空响应?

当我搜索一些不可用的问题时,如何得到空的响应?

如果问题可用,它应该返回正确的响应。

0 投票
1 回答
222 浏览

python - 按下 tkinter 按钮自动更新标签

我正在尝试使用 CHATTERBOT MODULE 和 TKINTER 创建一个聊天机器人程序。几乎没问题,实际上我的问题是每次单击按钮,程序都会使用 command 为我创建新标签risposta.pack()。我的意图是只创建一个标签并每隔一次按钮单击更新它。我该怎么做?

我的编码:

0 投票
1 回答
239 浏览

python-3.x - 如何将聊天机器人用于多个标签

我正在使用聊天机器人进行聊天机器人开发。我有包含 4 个类别的数据集,我的任务是处理如果 abc 的置信度低,则它匹配正确答案,否则 dce 类别匹配,那么我如何为此类问题实现新的逻辑适配器。

0 投票
1 回答
1045 浏览

python - (sqlite3.OperationalError) 无法从使用 Chatterbot 的事务中更改为 wal 模式

尝试在 Python 上运行 Chatterbot 时遇到此问题。代码失败的地方是这段代码的最后一行:

这是完整的错误代码:

OperationalError:(sqlite3.OperationalError)无法从事务中更改为 wal 模式(此错误的背景:http ://sqlalche.me/e/e3q8 )

我尝试阅读托管 ChatterBot 的 GitHub 上的错误报告,他们的解决方案是将 ChatterBot 降级到以前的软件版本,但这并没有解决问题。

任何帮助都会很棒!

0 投票
1 回答
1561 浏览

python-3.x - Chatterbot 中未定义“聊天机器人”

我正在通过 Chatterbot 制作聊天机器人。我面临以下问题:

  1. 当我运行代码时,它显示错误,但 ChatBot 一开始是从 chatterbot 导入的?

文件“.../SquirralBot.py”,第 5 行,在 SquirralBot 类中:文件“...SquirralBot.py”,第 6 行,在 SquirralBot 中 bot = Chatbot("SquirralBot", NameError: name 'Chatbot' is not defined

  1. 我想让聊天机器人区分特定的文本然后触发特定的语料库,我该怎么做?“chatterbot.conversation.Response(text, **kwargs)” 类是为了这个目的吗?例如,当用户输入“我要离开”时,会触发调用训练集“chatterbot.corpus.chinese.squirral_bye_conversation”?

  2. 如果我可以将回复专门存储到数据库中,例如不同用户的 MongoDB,是否有可能?例如当用户A回复“我生病了。我发烧流鼻涕”时,系统将“生病”存入“状态”,将“发热”和“流鼻涕”存入用户A的数据中的“症状”中,以便内部数据库就像 JSON:

    {“用户A”,“性别”:“男性”,“记录”:[{“日期”:“25-12-2018”,“状态”:“罚款”,“症状”:“”,},{ “日期”:“26-12-2018”,“状态”:“生病”,“症状”:“发烧”,“流鼻涕”} }

  3. 是否可以让聊天机器人在特定时间范围内向用户发送短信?

上述代码如下。我是编程新手,所以代码可能有点乱。请随时纠正。非常感谢。

0 投票
1 回答
445 浏览

django - 'chatterbot' 不是注册的命名空间

我只是克隆chatterbotapi 并尝试将django_appfrom 示例运行为python manage.py runserver. 我正面临这个问题。'chatterbot' is not a registered namespace 任何人都可以解释错误,我该怎么办?

应用程序.html:

网址.py:

更多信息:

注意:我已经检查过这个链接,但没有用。

0 投票
1 回答
715 浏览

python-3.x - 如何删除学习数据?

学习数据库-A后,我想删除一次学到的东西,然后学习数据库-B。但是,在我尝试的方法中,我无法删除我曾经学到的东西。我将同时学习数据库 - A 和数据库 - B。

你想听什么 · 如何删除学习的数据


我使用 django 将 chatterbot 上传到网络。使用蟒蛇 3

我是日本人,我使用翻译网站,所以这可能有点令人困惑。