bshao001 / ChatLearner

A chatbot implemented in TensorFlow based on the seq2seq model, with certain rules integrated.
Apache License 2.0
538 stars 212 forks source link

Resuming chat session #49

Closed nonex1 closed 6 years ago

nonex1 commented 6 years ago

Hi, @bshao001 your work has been best, and have encourage me to learn more. Can you please tell me how to save and load the pervious chat session. For example: When I chat with bot and provide my name it will remember name through out the session but once I exit the session it will forget. Is there a way that I can save the chat session and load it back or resume chatting from the previous point . Thanks before

bshao001 commented 6 years ago

@nonex1 This is not possible in a randomized HTTP session environment. Instead, if you are trying to build a system that is dedicated to a single user, or a system that has registered users, you can use user ID to identify a session instead. You can then serialize any information in an HTTP session into the file system or database system, and restore the information when the user comes back.

nonex1 commented 6 years ago

Thanks, @bshao001 totally understood, yes am trying to build personalised chatbot for my self so that I can get a better understanding of NLP and deep ML then I will analyze the data for inference this just another method of mine to learn machine learning. Just one more thing can you direct me where I can find some information about my query. Thanks Before

bshao001 commented 6 years ago

@nonex1 I am not sure I understand your question. In case you are talking about the chat history and you are using the Tomcat client via web services, you can find the history in Tomcat log files.