Giter Site home page Giter Site logo

lstm-chatbot's Introduction

LSTM Based NLU chatbot with randomized responses

This is a chatbot designed to classify inputs and generate apt outputs using Natural Language Processing techniques. This project is currently active under development and will be updated from time to time.

Installing dependencies

Install pandas and numpy for dataframe and mathematical features

pip3 install pandas
pip3 install numpy

Install PyTorch for model support

pip3 install torch torchvision torchaudio

Install keras for preprocessing

pip3 install keras
pip3 install Keras-Preprocessing

Installing BeautifulSoup for HTML parsing and JamSpell for spell-check

pip3 install beautifulsoup4
pip3 install jamspell

All required dependencies have now been installed.

Additional dependencies for flask server deployment

pip3 install Flask

Running the model from command line

Type python3 out.py and wait a couple of seconds till it shows

Started...
user:

Here is an example output: Screenshot from 2023-04-12 20-18-48

Running the model using a flask server

Type python3 flask_test.py and wait till the server has been deployed. A link will be displayed like the following

Running on http://127.0.0.1:5000

Copy the link at paste it on your browser to deploy the website. Here is an example output: image

Currently working on a better deployment method for the model with a proper front-end and also further increasing the number of classes and accuracy of the model and also adding numerous other responses.

lstm-chatbot's People

Contributors

aansh2003 avatar

Stargazers

 avatar

Watchers

Kostas Georgiou avatar Pratinav Seth 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.