GithubHelp home page GithubHelp logo

ameyem-skill-labs / tensorflow_seq2seq_chatbot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from higepon/tensorflow_seq2seq_chatbot

0.0 2.0 0.0 10.39 MB

License: Other

Python 44.95% Jupyter Notebook 55.05%

tensorflow_seq2seq_chatbot's Introduction

What is this?

This is seq2seq chatbot implementation. Most credit goes to 1228337123 and AvaisP. I'm just reimplmenting their work to have better understandings on seq2seq. This chat bot is optimized for Japanese. You may replace existing tokenizer with one for your language.

Main differences of my implementation are

  • More comments
  • Easy to understand input/output format for each processes

Requirements

  • Python 3.6
  • Tensorflow 1.1.0

How to run

  1. Prepare train data.

    1. Put your train data as data/tweets.txt, the file consists of pairs of tweet and reply.
    2. Odd lines are tweets and even lines are corresponding replies.
    3. You can get the training data using github.com/Marsan-Ma/twitter_scraper.
  2. Process the training data and generate vocabulary file and some necessary files. Run following command then you'd see the files generated in generated/ directory.

    python data_processer.py

  3. Train! Train may take a few hours to 1 day, and it never stops. Once you think it's ready, just Ctrl-C. Model parameters are saved in generated/ directory.

    python train.py

  4. Talk to him!

    python predict.py

Twitter Bot

By running twitter_listenr.py and twitter_replier.py, you can run this chatbot on twitter.

Here are some interesting conversations with him. sample1 sample2

tensorflow_seq2seq_chatbot's People

Contributors

higepon avatar

Watchers

 avatar  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.