Deep learning based Twitter Imposter Chatbot
Python CSS JavaScript HTML Shell
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 8 commits ahead, 141 commits behind Conchylicultor:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Deep Twitter Q&A


Have you ever wanted to know how someone special would reply on Twitter? Train a model on their twitter data.

This repository has adapted Conchylicultor/DeepQA to specifically ONLY work with tweets. Note that by default scraping Twitter and using their API will only yield you a maximum of 3200 tweets; most likely less. Twitter data will be collected by using the Twitter API. More specifically, all the answers of the person of interest in respond to questions is what the model will be trained on.

If there are companies out there who would like to have a custom QA application, feel free to contact me.


Fill in twitter credentials in chatbot/credentials.json.

Then you can run:

python --twitter_name gvanrossum

to build a model after the BDFL.

... 20 minutes later ...


python --twitter_name gvanrossum --test interactive

to have an interactive QA session with Guido.


Question asked after having trained on default settings:

Q: which editor do you use ?
A: emacs of course !

Twitter data

You can see the collected twitter data at:


Installation (quoting Conchylicultor)

The program requires the following dependencies (easy to install using pip):

  • python 3.5
  • tensorflow (tested with v0.9.0 and v0.11.0)
  • numpy
  • CUDA (for using gpu, see TensorFlow installation page for more details)
  • nltk (natural language toolkit for tokenized the sentences)
  • tqdm (for the nice progression bars)

Further instructions

You're advised to experiment with the possible paramters to make it a better model.

Have a look at the original repo for more information.