使用 API 进行聊天对话机器人? (聪明机器人)

发布于 2024-12-02 18:51:32 字数 1539 浏览 2 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

归途 2024-12-09 18:51:32

看看这个项目 chatter-bot-api

这个库允许与 Cleverbot 交互在JAVA中。

希望这有帮助!

PS:我是所有者

编辑:链接到 GitHub 而不是(现已弃用)Google 代码页

Have a look at this project chatter-bot-api

This library allows to interact with Cleverbot in JAVA.

Hope this helps!

PS: I am the owner

EDIT: link to GitHub instead of the (now deprecated) Google Code page

静若繁花 2024-12-09 18:51:32

也许这会很有趣: https://sourceforge.net/projects/chatem/ - 脚本要求选择 2 个聊天机器人,启动对话并将机器人的答案从一个传递到另一个,显示为一个对话框

Probably this will be interesting: https://sourceforge.net/projects/chatem/ - script asks to choose 2 chat-bots, starts dialogs and palms off bot's answers from one to another, showing as a dialog

挥剑断情 2024-12-09 18:51:32

AIML(Pandora Bots)

您获得的原始代码在生成用户密钥和应用程序 ID 的同一页面上有一个按钮。在 usr/bin 中安装 pb-cli、编译并设置程序后,您可以从 mac 终端或 Linux shell 服务器端训练机器人,并使用 pb upload 上传更新您的 Pandora Bots 知识库的 aml 文件。每次更新后,您都必须重新编译,但网站的信息分散在不同的网站上,因此,如果您看到任何教程,我建议您在该页面上添加书签。我认为 nodejs 的教程位于 chatbots.io

应用程序名称和机器人名称可以是您想要的任何名称。主机名可以留空,但我相信如果您想在自己的网站上使用它,它会提供 url 的使用。您为机器人选择的名称是私有名称,必须与其他凭据一起使用,一旦托管在 Pandora 机器人上,您就可以选择另一个名称,因此只需使用相同的名称,否则您将用完您的机器人配额。使用 pb init 后,您选择的底层机器人名称将被设置。

完成所有这些后,您可以访问 github 并下载目标文件。我有一个基本的 Java 程序实现,我很快也会使用 OpenGL 绑定来实现它,最终我可以将 Microsoft Kinect 技术与 JOGL 结合起来,并可能有一天构建一个机器人。

AIML(Pandora Bots)

The original code you get, has a button on the same page where you generate your user key and app id. Once you install pb-cli in usr/bin, compile and set up the program, you can train the bot from your mac terminal or linux shell server side and use pb upload to upload aiml files updating your Pandora Bots knowledge base. After every update you must recompile but the websites have the information strewn across different websites, so if you see any tutorials I would advise you book mark the page. I think the tutorial for nodejs is on chatbots.io

The app name and botname can be anything you want them to be. The host name can be left blank, but I believe it gives use of a url for instance if you wanted to use it on your own website. The name you choose for your bot is a private name that must be used with the other credentials and once it's hosted on Pandora Bots you choose another name, so just use the same name or you will use up your bot allowance. Once pb init is used the underlying bot name you chose will be set.

Once all of this is done you can get on github and download aim files. I have a basic java implementation of the program that I will be working on soon also with OpenGL bindings and eventually I could incorporate Microsoft Kinect technology with JOGL and possibly build a robot one day.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文