javascript - 使用开源服务为 Vue JS 机器人添加智能
问题描述
我正在尝试使用 Vue JS 构建一个完全开源的机器人,我需要添加智能以使机器人按时间从用户输入中学习,我不想使用微软、谷歌或 IBM 或任何提供的服务其中我想使用一个我可以自己托管并在以后改进的开源解决方案
我怎样才能做到这一点?
这是我现在展示你好世界的方式:
var botui = new BotUI('hello-world');
botui.message.add({
content: 'Hello World from bot!'
}).then(function () { // wait till previous message has been shown.
botui.message.add({
delay: 1000,
human: true,
content: 'Hello World from human!'
});
});
这就是我关注 rn:https ://www.cssscript.com/minimal-javascript-chat-bot-framework-botui/
解决方案
AIML:您可以使用人工智能标记语言 (AIML) 为您的机器人创建对话流。AIML 非常容易学习,基本上是 XML 的扩展。
这是一个基本示例:
<category> defines beggining of category
<pattern>What the User Says</pattern>
<template>What the Bot Responds</template>
</category>
您可以在这里了解更多信息: 游乐场
AIML 的开源平台: Pandorabots
推荐阅读
- flutter - Flutter - 如果内容溢出,如何使页面可滚动,但如果没有,则扩展?
- python - 在 Mac 上使用 Python 评论 Jupyterlab 的快捷键
- python - Pandas-根据重复行更新特定列中的值
- c++ - 使用带有 constexpr 参数的 std::enable_if 进行重载解析不能按预期工作
- javascript - 当我有多个用户输入时如何识别正确的输入 - html 和 javascript
- spring - 如何控制 Spring Boot Admin 调用自定义 HealthIndicator 的频率?
- java - Servlet 错误 404 - 请求的资源 [/ECommerce/Auth] 不可用
- mvvmcross - 在关闭 xamarin 视图时,我收到错误:当它也是当前显示的页面时,无法删除根页面
- css - 打印布局的 Chrome 渲染损坏
- angular - Angular 11:错误:未捕获(承诺):错误:无法匹配任何路由。URL 段:'http:'