C ++聊天机器人,如何允许聊天机器人存储来自用户的响应以在当前/将来的对话中使用. [英] C++ Chatbot, how to allow chatbot to store responses from user for use within the current/future conversations.

查看:61
本文介绍了C ++聊天机器人,如何允许聊天机器人存储来自用户的响应以在当前/将来的对话中使用.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 

在此方面的任何帮助将不胜感激.

Any help on this would be greatly appreciated.

我一直在用C ++设计一个聊天机器人(Eliza聊天机器人的翻版),并且我具有基本的结构,可以在控制台中键入语句并使用数据文件(例如我的模式)来完成. txt文件,它将查找当前模式并输出相关响应.

I have been designing a chatbot (a remake of the Eliza chatbot) with C++ and I have the basic structure done with the ability to type in a statement within the console and by using data files such as my pattern.txt file, it will look up for current patterns and output the relevant response.

但是,我希望添加一个内存选项,以便聊天机器人可以根据我的输入来了解有关主题的事实,并在对话/未来对话中使用此知识.

However I'm looking to add a memory option, as to allow the chatbot to learn facts about a subject in response to my input and uses this knowledge within the conversation/future conversations.

例如,如果我要输入父亲的名字,然后再在对话中询问聊天机器人是否知道父亲的名字,我将如何存储该名字然后在对话中使用它

For example, If I were to type in the name of my father and later in the conversation if i asked the chatbot if it knew my father's name, how would I store the name and then use it within the conversation.

我已经读到我可能必须使用会话状态?这是真的吗?

I've read into that I might have to use session state? Is this true?

感谢您的帮助.

Jas

Jas

推荐答案

MSDN 论坛首页> Visual C ++ > Visual C ++语言位于此处: http: //social.msdn.microsoft.com/Forums/zh-CN/vclanguage/threads/.

Thank you for your post!  I would suggest posting your question in one of the MSDN > Forums Home > Visual C++ > Visual C++ Language located here:  http://social.msdn.microsoft.com/Forums/en-US/vclanguage/threads/.


这篇关于C ++聊天机器人,如何允许聊天机器人存储来自用户的响应以在当前/将来的对话中使用.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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