Giter Site home page Giter Site logo

lucassrg / chatbot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from louisteo9/chatbot

0.0 1.0 0.0 1.31 MB

This project demonstrates how you can easily create a powerful chatbot to handle your growing customer requests and inquiries.

License: MIT License

Jupyter Notebook 66.96% Python 17.78% CSS 6.18% HTML 9.07%

chatbot's Introduction

Chatbot

Table of Contents

  1. Introduction
  2. File Description
  3. Installation
  4. Instructions
  5. Acknowledgement
  6. Screenshots

Introduction

In this project, I will show you how you can easily create a powerful chatbot to handle your growing customer requests and inquiries.

I will also show you how to deploy your chatbot to a web application using Flask.

Feel free to read the post I published on Towards Data Science here

File Description

Chatbot Notebook.ipynb - Jupyter notebook used to develop chatbot
chatbot_training.py - chatbot training script
chatbot.py - chatbot script
web_app.py - Flask web application

Installation

Please install chatterbot, chatterbot_corpus and spacy if you had not done so. Apart from that, there should be no extra libraries required to install apart from those coming together with Anaconda distribution. The code should run with no issues using Python versions 3.5 and above.

Libraries used

chatterbot, os, flask

Instructions

  1. Install ChatterBot library.
    pip install chatterbot
  2. The ChatterBot text corpus is distributed in its own Python package, so you need to install it separately.
    pip install chatterbot_corpus
  3. If you have not installed spaCy (an open source library for advanced NLP) before, then please install it now because CHatterBot library needs it to work.
    pip install spacy
  4. Install spaCy English ('en') model after installing the spaCy library.
    python -m spacy download en
  5. Save your conversation text files in training_data folder.
  6. Run chatbot_training.py to train your chatbot. You will be asked to choose if you want to train the chatbot with English corpus data - select Y or N.
    (Select Y - your chatbot will be trained to have conversations in the following scope: AI, botprofile, computers, conversations, emotion, food, gossip, greetings, health, history, humor, literature, money, movies, politics, psychology, science, sports & trivia.)
  7. Run chatbot.py to launch chatbot in terminal. You can input some conversations and test if it responds properly.
  8. Run web_app.py to deploy chatbot to web app using Flask.

Acknowledgement

ChatterBot for creating such a powerful chatbot library.

Screenshots

  1. Run chatbot_training.py to train your chatbot.

  2. Run chatbot.py to launch chatbot in terminal. Input some conversations and test if it responds properly.

chatbot's People

Contributors

louisteo9 avatar

Watchers

James Cloos 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.