问题标签 [aiml]
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.
python - 设置/映射标签未在 PyAIML 中编译
我正在尝试使用 AIML 和 PyAIML 制作一个聊天机器人,并从一个简单的脚本开始。但是我得到了一个
解析错误:意外标记(第 4 行,第 23 列)
当我尝试执行
aiml 版本 2 支持设置标签,而 pyaiml0.8.6(我正在使用)是最新版本。我在同一目录中有一个 animal.set 文件。<map>
标签也存在类似问题。
那么我在编译目标文件时缺少什么?有关 aiml 的更多信息有用吗?
python - 我们可以将html标签包含在 of AIML files
I am trying to build a basic bot with the help of AIML file. Where I can ask a question and matched pattern will be returned for that pattern. Sample pattern is this in my AIML file.
I am trying to build a basic bot with the help of AIML file. Where I can ask a question and matched pattern will be returned for that pattern. Sample pattern is this in my AIML file.
I am using PyAIML package for integrating python with AIML. So, if I ask "test", I get the response as
"Hi..This is the testing pattern. How are u doing".
But if I change my above pattern to
Basically If I add html tags. Then my bot does not respond. It gives blank answer for "test". What can be the problem here? Here is my code in python
Also if html tags are not working because I am running the code in python interpreter, then how to test if it will work or not.
Change
To:
I am trying to build a basic bot with the help of AIML file. Where I can ask a question and matched pattern will be returned for that pattern. Sample pattern is this in my AIML file.
I am trying to build a basic bot with the help of AIML file. Where I can ask a question and matched pattern will be returned for that pattern. Sample pattern is this in my AIML file.
I am using PyAIML package for integrating python with AIML. So, if I ask "test", I get the response as "Hi..This is the testing pattern. How are u doing".
But if I change my above pattern to
Basically If I add html tags. Then my bot does not respond. It gives blank answer for "test". What can be the problem here? Here is my code in python
Also if html tags are not working because I am running the code in python interpreter, then how to test if it will work or not.
Change
To:
java - Android 聊天机器人 Gui 与 Program Ab AIML 解释器的链接
我正在开发一个带有程序 AB 的 android 聊天机器人应用程序,它是一个 AIML java 解释器。我需要一些帮助来制作访问 AIML 文件并给出答案的 Android GUI。我已经在 Android 中创建了一个聊天 GUI,它是一个带有适配器的可滚动列表,可以保存消息(请求和答案)。
该应用程序有效。它可以发送请求并获得答案,但我不知道如何从 ListView 在 TextView 中显示此消息。
这是我的 Android 聊天代码的外观:http: //javapapers.com/android/android-chat-bubble/
为了使用将 Bot 与 Android 链接的 Program AB 来实现 aiml 文件,我使用了这个模型: https ://github.com/bradleybossard/android-program-ab-demo
aiml - PyAIML 使用“安全”谓词失败
我刚开始玩 PyAIML。我的笔记在http://webseitz.fluxent.com/wiki/AIML。
我正在尝试使用一个启动 AIML文件来加载整个 AIML 文件目录。但得到You are not permitted to load AIML sets
回应。即使在添加k.setBotPredicate("secure", "yes")
代码之后。
我错过了什么?
php - 在程序-o 目标中使用“_”
我正在尝试在 program-o 中实现一个 aiml 文件,但“_”似乎不像文档中定义的那样工作。
程序版本为 2.4.7。
输入:“什么是动作”
预期输出:行动
输出:空(空白输出)
谁能解释一下如何解决这个问题?
c# - 如何将 AIMLBot 集成到 C# 中?
我决定研究 AIML(人工智能标记语言),我认为它适用于 C#,因为我看到其他一些人在他们的 C# 程序、聊天机器人等中使用了 AIML。然后我注意到一个叫做 AIMLBot (Program#) 的东西,当然,是的,它在 Visual Studio 和所有这些东西中引用了它。但是现在,我不知道从哪里开始。每当我搜索“AIML C#”或类似的东西时,都没有任何文档/教程/废话(原来的教程由于某种原因现在已经关闭) ,我绝对没有得到与此相关的搜索结果。因此,我对如何使用它没有任何指导(因为没有教程/没有示例(它附带的示例项目不再加载,它们来自旧版本,所以 Visual Studio 没有)t 似乎真的很喜欢它)/没有任何与它相关的东西,除了它的 SourceForge 页面包含很少或没有有用的信息。所以,也许我要的是一个小的基地,这会让我继续前进。
谢谢,
python - ImportError:没有名为“内核”的模块
我正在使用 Windows 10 并正在处理一个聊天机器人项目并使用与 python 集成的 aiml 我收到了这个错误
在这里运行集成代码时
我的目标目录包含文件__init__.py 这是它的内容
文件内核也存在..那是什么问题?
tags - 如何使用 AIML标签
我是使用<oob>
标签的新手,我正在使用 pandora-bot 聊天机器人。我使用了许多目标标签并完成了我的工作。请指导如何在aiml中使用oob标签,以便在android编程中实现其响应。
如果有任何不清楚的地方,请随时提出问题。
oob 标记正在响应,但未打开搜索或拨打电话。
ruby-on-rails - SRAI 代码未正确重定向
刚从 AIML 开始,似乎无法让<srai>
命令用于链接同义词。我正在使用 Ruby on Rails 和 Programr gem。例如,下面是我的代码:
当我输入 Hi 时,我的聊天机器人不明白我在说什么。在命令日志中,您可以看到它正在查询“Hi”,而不是“Hello”。知道我可能在哪里转向错误吗?
为了增加参考,这是我的控制器:
还有我的初始化程序:
java - 如何在java中制作一个虚拟聊天机器人?
我想用 Java 制作一个聊天机器人,但我不知道如何开始?我已经尝试了以下代码,但没有得到我真正需要的。在这个程序中,我必须写出所有可能的问题。如果有人有解决方案,请帮助我。