This chatbot uses Rasa.
Right now the documentation only contains interesting links to get started with docs
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
To install all dependencies execute:
pipenv install --dev
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
To run tests use:
pipenv run pytest