GithubHelp home page GithubHelp logo

bhyvex / fib-chatbot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from victorbusque/fib-chatbot

0.0 1.0 0.0 157.09 MB

A chatbot developed to help FIB students. It uses both NLP and Machine Learning techniques to answer questions.

Home Page: https://telegram.me/TestTFGBot

Python 100.00%

fib-chatbot's Introduction

Fibot

Fibot is a telegram bot that is able to help FIB students through conversations. You can try him online by going here!

Libraries

It is written using:

Table of contents

Quick start

After getting everything set up (more about how in Setup ...) it is only necessary to run the run.py script.

It will automatically boot up the bot and it will start to be effective and get to respond queries from students.

Setup

Make sure to have everything installed. Notice it is necessary to have the corpus for both 'en' and 'es' languages on spaCy. You can download them by using the following commands on your terminal.

  python -m spacy download en

and

  python -m spacy download es

Then, there is a step necessary to execute everything correctly, which is to set up several environment variables:

  • client_id: with the client_id value obtained by registering your app in here.
  • client_secret: with the client_secret value obtained by registering your app in here.
  • encryption_key: a 16-character-long number that acts as private key for encrypting sensible data.
  • FibotTOKEN: The Telegram bot Token as obtained by Telegram's BotFather here after creating the bot.

Next, if you have not downloaded the models folder with the pretrained files, it is mandatory to execute first the train_models.py, so that it can train the necessary models and store them to be used later.

Also, it is possible to automatically generate the dataset that the rasa_nlu is trained on using the generate_dataset.py python script, that allows to create a dataset for any language of the three of a fixed size randomly (using the data in Data/Professors.txt and Data/Subjects.txt, etc).

fib-chatbot's People

Contributors

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