Bot_U GitHub:

I am diving even deeper into chatbot technologies thanks to Alexa prize recently. I would like to share with you my fun side project which I created. It called Bot_U. It is chatbot created out of your chat history on Facebook. You can chat with the copy of yourself thanks to it. This project will basically give you immortality. Anybody will be able to talk with you even after your death and understand your ideas, plans, desires and dreams…

You can download its code from my GitHub Follow steps from readme to make it running. You will have to download an archive of your Facebook chat logs and run one python script in a nutshell.

How does it work? BOT_U uses Python3 with scikit-learn’s TF-IDF. The Python script parses all messages send to you from Facebook logs, pair them with your answers to them, converts messages to vector representation and saves it bot’s memory. This happens before chatting with the chatbot.

What happens when the chatbot receives some message from a user? The user’s message is also converted to vector representation and is compared to all messages in bot’s memory by cosine similarity. The answer to the most similar message is returned.

I recommend tutorial about the TF-IDF by Christian S. Perone.

Leave a Reply

Your email address will not be published. Required fields are marked *