GithubHelp home page GithubHelp logo

nimishzynga / twitterqa Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kootenpv/twitterqa

0.0 1.0 0.0 11.36 MB

My tensorflow implementation of "A neural conversational model", a Deep learning based chatbot

License: Apache License 2.0

Python 51.35% CSS 36.35% JavaScript 10.07% HTML 2.00% Shell 0.24%

twitterqa's Introduction

Deep Twitter Q&A

Introduction

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.

Usage

Fill in twitter credentials in chatbot/credentials.json.

Then you can run:

python main.py --twitter_name gvanrossum

to build a model after the BDFL.

... 20 minutes later ...

Run

python main.py --twitter_name gvanrossum --test interactive

to have an interactive QA session with Guido.

Example

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:

data/tweets/<username>-answers.txt
data/tweets/<username>-questions.txt

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.

twitterqa's People

Contributors

conchylicultor avatar kootenpv avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.