Coder Social home page Coder Social logo

datasenseiaryan / ts3000_thechatbot Goto Github PK

View Code? Open in Web Editor NEW
24.0 0.0 4.0 721 KB

Its a social networking chat-bot trained on Reddit dataset . It supports open bounded queries developed on the concept of Neural Machine Translation. Beware of its being sarcastic just like its creator :stuck_out_tongue_closed_eyes: BDW it uses Pytorch framework and Python3.

License: MIT License

Jupyter Notebook 22.85% Python 77.15%
pytorch-implementation pytorch-nlp reddit-dataset neural-machine-translation nmt-chatbot python3 social-network-chatbot deep-learning bidirectional-rnn sqlite3-database

ts3000_thechatbot's Introduction

TS3000_TheChatBot

Tony Stark 3000 - The Chat Bot Its a very basic level conversational AI.

Its a social networking chat-bot trained on Reddit dataset . It supports open bounded queries developed on the concept of Neural Machine Translation. Beware of its being sarcastic like its creator ๐Ÿ˜ :trollface: BDW it uses Pytorch framework and Python3

Data Preprocessing :

Downoad Reddit Data From Here

Follow These :

  • Put Downloaded data in Data_Preprocessing directory .

  • Unzip the .bz2 file bzip2 -dk filename.bz2

  • Run createDB.py

    python3 createDB.py

    This will create Database from Raw JSON text file which you unzipped earlier.

  • Run createCORPUS.py

    python3 createCORPUS.py

    This will create corpus .For example I created 2011-08small.txt

  • Move this created corpus to Data directory .


Trainining Model :

  • Start training model using this command :

    python3 main.py -tr data/2013-09small.txt -l -lr 0.0001 -it 50000 -b 64 -p 500 -s 1000

  • To resume training from last where yiu left :

    python3 main.py -tr data/2013-09small.txt -l save/model/2013-09small/1-1_512/3000_backup_bidir_model.tar -lr 0.0001 -it 50000 -b 64 -p 500 -s 1000


Testing Model :

  • To test the model in interactive mode :

    python3 main.py -te save/model/2013-09small/1-1_512/3000_backup_bidir_model.tar -c data/2013-09small.txt -i


Acknowledgements :


License :

MIT License

Copyright (c) 2019 Aryan Chaudhary

LICENSE

HitCount

ts3000_thechatbot's People

Contributors

datasenseiaryan avatar

Stargazers

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