'8 球'程序
我尝试过在谷歌上查找,但我想我无法获得正确的搜索短语来找到我想要的东西。如果您熟悉 afterNET IRC 服务器,有一个命令“.8”,它是一个 8 球。它回答的不仅仅是是/否问题。它会根据您在问题中使用的某些单词(例如时间、地点、颜色等)为您提供各种答案。
我想做这样的事情,但不知道从哪里开始。我最近学习了 DFA(确定性有限自动机),这是我应该开始的地方吗?我知道我不想编写人们使用的所有可能的单词组合的脚本,但是如果有一个感觉有点现实的系统(就像 IRC 服务器上的 8ball 程序),并且可以扩展为更多“单词”,那就太好了' 每当我想要的时候。
感谢您的任何帮助/链接!
I've tried looking on google but i guess I can just not get the right search phrases to find what I want. If you are familiar with the afterNET IRC server, there is a command '.8' which is an 8 ball. It answers more than just yes/no questions tho. It gives you a variety of answers based on certain words you use in your question, like when, where, color, etc
I'd like to make something like this but have no idea where to start. I've recently studied DFA (Deterministic Finite Automata), is that where I should start? I understand I don't want to be scripting out every possible combination of words people use, but it would be nice to have a system that feels sorta realistic (like the 8ball program on the IRC server), and is expandable for more 'words' whenever I want.
Thanks for any help/links!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能对大多数 8ball 实现给予了超出其应得的信任。我认为重点是问题是针对是/否答案,因此提供的答案只需涵盖一组相当可预测的可能性。
我所知道的大多数 8ball 脚本 (示例)将仅使用数组和随机数来获取答案。
Magic 8ball 机器人在 irc 上非常受欢迎,因为它们非常容易实现 - 只需使用给定标记(在本例中为“.8”)响应文本并以随机答案响应。
我从未听说过使用确定性方法的神奇 8ball,Cleverbot 风格。实际上,尝试这样做时,我什至不确定它的确定性如何,因为大多数响应也是完全随机的,与我所说的无关。
You may be giving most 8ball implementations more credit than they deserve. I think the point is that the questions are for yes/no answers, so the provided answers only have to cover a fairly predictable set of possibilities.
Most 8ball scripts that I am aware of (example) will just use an array and a random number to grab an answer.
Magic 8ball bots are very popular on irc as they are very easy to implement - simply respond to text with a given marker (in this case ".8") and respond with a random answer.
I have never heard of a magic 8ball using a deterministic approach, Cleverbot style. Actually, trying that, I'm not even sure how deterministic that is as most of the responses are also totally random and unrelated to what I was saying.