简单的聊天机器人项目 [英] Simple chat bot projects

查看:105
本文介绍了简单的聊天机器人项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想做的是构建一个简单的机器人,该机器人将一组存储在数据库中的信息发送给我的Messenger聊天窗口[聊天服务是gTalk,Yahoo和其他常用的聊天产品]而且,它应该能够接受几个预定义的命令并回复它们.

What I want to do is build a simple bot which sends me a set of information stored in database to my messanger chat window [Chatting services are gTalk, Yahoo and other commonly used chating products] Also, it should be capable of accepting few predefined commands and replying them.

有没有可用的开源代码?

Is there any opensource code available for this?

推荐答案

查找 AIML (人工智能标记语言),已经有很多年了,它对于简单的东西定义得很好并且很灵活.您还可以使用各种递归模板来完成相当复杂的工作,并且结果相当不错(就笨机器人而言).

Look up AIML (Artificial Intelligence Markup Language), it's been around a number of years and it's pretty well defined and flexible for simple stuff. You can also do pretty sophisticated stuff with all sorts of recursive templates and the results are pretty decent (as far as dumb bots go).

有一堆使用此标记语言的打开sdk项目,将负责将您的输入模式与存储在xml文件中的给定答复进行匹配,而您必须使用模板进行配置.

There's a bunch of open sdk projects that use this markup language, that will take care of matching your input patterns to a given reply stored in the xml files you'll have to configure with templates.

几年前,我使用Java使用AIML开发了一个Messenger bot,用于存储模式(如果您遵循上面的链接,则有很多API),并使用了

I worked on a messenger bot a few years back in Java using AIML for storing patterns (there are plenty APIs if you follow those links above) and used the incesoft msn bot platform. Worked out just fine.

希望有帮助.

这篇关于简单的聊天机器人项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆