Giter VIP home page Giter VIP logo

adiprogrammer7 / intent_based_chatbot Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 0.0 210 KB

An intent-based chatbot in python with tflearn and TensorFlow. It can be trained for a specific purpose and works well within that specific scope.

Python 29.44% Jupyter Notebook 70.56%
chatbot python intent-based deep-learning neural-networks chatbot-application text-to-speech natural-language-processing nltk pyttsx3

intent_based_chatbot's Introduction

intent_based_chatbot

An intent-based chatbot in python with tflearn and tensorflow. It can be trained for a specific purpose and works well within that specific scope. The intents.json file can be updated based on purpose and even if statement pattern given from the user varies from the patterns on which model is trained, the model still will give accurate results. The model gives probabilities for different tags based on the input and then appropriate response corresponding to that tag is returned. That response is also piped out with pyttx3 which is a text-to-speech conversion library.

To run:

Clone the repo to your local machine:

https://github.com/Adiprogrammer7/intent_based_chatbot.git

Install dependencies:

pip install -r requirements.txt

You can run main.py directly as model is already trained on some sample data. But you can change the scope of chatbot by updating intents.json file and then training the model by running training_chatbot.ipynb.

Preview:

You can see here, the inputs given by the user are not identical to the patterns mentioned in intents.json file, still model is efficient enough to predict for the trained scope.

preview_screenshot

Feel free for any useful contribution :)

intent_based_chatbot's People

Contributors

adiprogrammer7 avatar

Stargazers

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