Coder Social home page Coder Social logo

shrebox / personified-chatbot Goto Github PK

View Code? Open in Web Editor NEW
23.0 5.0 0.0 4.16 MB

A personified chatbot responding to a query based on the answering pattern of Dr. APJ Abdul Kalam using Information Retrieval, Natural Language Processing, and Deep Learning techniques.

Python 99.80% Jupyter Notebook 0.20%
chatbot seq2seq-model seq2seq-chatbot lstm information-retrieval deep-learning word2vec apj-abdul-kalam nlp natural-language-processing

personified-chatbot's Introduction

DOI

alt text

If you end up using this code or the data, please cite our paper:

@unknown{unknown,
author = {Arya, Shreyash and Uberoi, Anannya and Dhawan, Sarthika and Chakraborty, Tanmoy},
year = {2019},
month = {02},
pages = {},
title = {“I am Kalam” - Analyzing and Generating Kalam's Answer Patterns},
doi = {10.13140/RG.2.2.28964.09602}
}

Cite work here!

'I am Kalam' - Reliving Kalam’s Words

💡 The work was presented at the Workshop on AI for Computational Social Systems (ACSS 2019), IIIT-Delhi.

Analyzing answer pattern of APJ Abdul Kalam and responding to a query following his answering pattern. We are applying RNNs to generate answers to user queries.

Dataset: Dataset has been scrapped from interviews available on various websites form the google search results.
Files: dataset/ directory containes different extracted data forms.
Code: code/ directory contains codes from IR-IE model, seq2seq model, preprocessing and evaluation.

IR-IE model


$ python sen2vec_my.py

** sent2vec library needs to be installed from https://github.com/epfml/sent2vec.<br>
** pre trained model <a href='https://drive.google.com/file/d/0B6VhzidiLvjSOWdGM0tOX1lUNEk/view'>torontobooks_unigrams.bin</a> need to be downloaded and kept in same directory.

seq2seq model


$ python main.py 

to train the system and save the model named as model.npz.<br>
Set inference_mode=1 for testing purpose and run python main.py.

References


Tada! (:) ✌️👽

personified-chatbot's People

Contributors

anne27 avatar sarthikadhawan avatar shrebox 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

Watchers

 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.