Skip to content

Brazilian Portuguese chatbot built with Python and Rasa NLU Framework to solve the proposed exercise in "Cognitive Computing: Chatbots" discipline.

License

Notifications You must be signed in to change notification settings

tjas/postgrad-ai-nlp-chatbot

Repository files navigation

postgrad-ai-nlp-chatbot

Status Hits Licence Commits Last commit Repo size Code size Stars Watchers Forks

Python Rasa

⭐ Mark the project with a star. 👀 Watch the project for receive news.

🇧🇷 Acesse esta página em Português do Brasil.

Artificial Intelligence postgraduation's Cognitive Computing: Chatbots discipline exercise using Python and Rasa NLU Framework to build a Brazilian Portuguese chatbot. The postgraduate course was held at Centro de Educação Superior de Brasília (IESB) and the referred discipline took place in 2020.

Proposed Exercise

Create a chatbot using the Rasa Framework, with the same characteristics as the first exercise (performed in Watson Assitant, to build a chatbot similar to the one built in this project, but not publicly available), meeting the following requirements:

  • Basic structure: Greeting, Ending, Action, Other questions (optional);
  • Run at least one custom action within a form flow that connects to an external service (using Python requests);
  • The pipeline must be configured allowing training of the chatbot in Brazilian Portuguese;
  • Excellence in configuration and training will not be charged, but the training must be sufficient for the dialog flows to be executed;
  • It is not necessary to integrate with any Front-end messenger, just deliver the Rasa Framework project;
  • Submit the Rasa Framework project folder without the model files. To deliver, delete the files from the model folder, zip and send it. If you wish, you can version the files on GitHub.

Instructions to Run the Project Locally

Example using Linux operational system.

This is an example of how you may set up the project locally in your computer. We strongly recommended that you use virtual environments to run the application, we recommend Virtualenv (or any other of your choice). Read documentation, create and activate the virtual environment inside the project folder before steps 6.

To get a local copy up and running follow these steps:

  1. Make sure you have Python 3.8 installed or do it from Python.org or from Anaconda;
  2. Make sure you have Git installed or do it from Git-scm.com;
  3. Access the folder you want to save the project, then clone the repo there
    git clone https://github.com/tjas/postgrad-ai-nlp-chatbot
  4. Access the project folder;
  5. Create and activate the virtual environment
    virtualenv venv --python=/usr/local/bin/python3.8
    source venv/bin/activate
  6. Install the project dependencies
    pip install -r requirements.txt
  7. Train the model
    rasa train
  8. Run the Action Server:
    rasa run actions
  9. Run the Rasa Shell:
    rasa shell

Contact

Thiago Jorge Almeida dos Santos, project author and maintainer.

LinkedIn YouTube Instagram Website GitHub

Licence