Git Product home page Git Product logo

startbot's Introduction

Create a chatbot with Flask, Python and Rasa NLU

using supervised training

Backend:
step1) Startup csv data file from Kaggle
step2) Use Jupyter notebook for data analysis
step3) Create training data json file using rasa nlu trainer: https://rasahq.github.io/rasa-nlu-trainer/
step4) mkdir startbot
step5) mkdir startbot/data to store the  startup data json file
       data files : data/startup-data.json
step6) Cretae a config file that uses spacy for NLP, model directory to store the trained model
       config.json
step7) Train the chatbot using rasa_nlu and config by running the  following command
       python -m rasa_nlu.train -c config.json
       This will create a model in the directory specified (models) in the config files with the timestamp
step8) Set up http server to run with the config file and latest model
       python -m rasa_nlu.server -c config.json 
step9) To setup the knowledge base for the startbot create a knowledge file with responses using python dictionary.
        knowledge.py

Frontend:
Flask application
Step1) Create templates folder and the following templates: layout.html, index.html
Step2) Create static folder and css and js sub folders: css/chat-interface.css, js/bind.js
Step3) Use bootstrap, googlefontapi
Step4) Create app.py : main flask application
       python app.py to begin

startbot's People

Contributors

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