Skip to content

mouadino/twde-chatbot

Repository files navigation

CircleCI

Chatbot

This chatbot uses Rasa.

Documentation

Right now the documentation only contains interesting links to get started with docs

Installation

Prerequisite

Make sure that:

  • You have python3.
  • pipenv is installed, if not run pip install pyenv.
  • Language setup correctly to english
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

Install

To install all dependencies execute:

pipenv install --dev

Play

First you need to train the bot, to do start by downloading language dependencies (this only need to be done once):

pipenv run python -m spacy download en_core_web_md
pipenv run python -m spacy link en_core_web_md en

Then run training use:

  • pipenv run chatbot/cli/train.py for running normal training.
  • pipenv run chatbot/cli/train_online.py for running interactive training.

Then to start the bot, there is multiple ways:

  • In the console: pipenv run chatbot/cli/console.py
  • As a google chat api: pipenv run chatbot/cli/server.py
  • As a google chat api using Heroku: pipenv run heroku local

To reduce logging verbosity set the environment variable LOGLEVEL to error, for example:

LOGLEVEL=ERROR pipenv run chatbot/cli/console.py

Test

To run tests use:

pipenv run pytest

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages