Skip to content

A chatbot that fetches events details from a conference's website

Notifications You must be signed in to change notification settings

kparde/rasa-site-bot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Site bot

A site bot build using rasa-nlu.

Setup

  1. if you are using Ubuntu pip install -r requirement.txt

  2. If you are using windows machine pip install -r requirement.txt The above command will fail for few packages like mitie. So you have to install the following pip install numpy,scipy,sklearn,spacy If you have error while downloading any of these packages download whl files from http://www.lfd.uci.edu/~gohlke/pythonlibs/

  3. You will have two parts in this projects

    1. AI-Engine

    The AI Engine part takes care of Natural language understanding It is built using a open source NLU agent called rasa-nlu

    1. Bot application

    The bot application is a flask application that has a Client(Simple UI chat interface), a backend that fetches event details pydelhi conference website

  4. Initially you need to train your bot to do that you need two json files config and 'training_data'.

  5. To train your model you can use either 'spacy' or 'mitie' algorithm. For my application I am using mitie.

    If you are using mitie you should download a .dat file from https://github.com/mit-nlp/MITIE/releases/download/v0.4/MITIE-models-v0.2.tar.bz2

    python -m rasa_nlu.train -c config_mitie.json

    The training may take sometime

  6. Once the training is done you will have a models folder created with a timestamp

  7. Now you have to host this model for your bot application to use

    python -m rasa_nlu.server -c config_mitie.json --server_model_dirs=./model_YYYYMMDD-HHMMSS

  8. To setup the knowledge base for the bot run extract.py under bot_applications

    python extract.py You will have a sqlite app.db created

  9. To run the application run

    python app.py

About

A chatbot that fetches events details from a conference's website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 44.4%
  • Python 24.5%
  • JavaScript 24.4%
  • HTML 6.7%