Here are the steps on how to set Mbaza up on your local machine:
git clone https://github.com/MBAZA-NLP/mbaza-covid-chatbot-english.git
cd mbaza-covid-chatbot-english
We recommend that you work within a virtual environment.
- Create a new virtual environment by choosing a Python interpreter and making a
./venv
directory to hold it:
python3 -m venv ./venv
- Activate the virtual environment:
source ./venv/bin/activate
make install
This will install the bot and all of its requirements. Note that this bot should be used with python 3.7, 3.8 or 3.9.
By default, you won't have a trained model, so to train a model, use:
rasa train
The above command will take a significant amount of memory to train, if you want to train it faster, try the training command with:
rasa train --augmentation 0
Prerequisite:
Ensure the following endpoint url in your endpoints.yml
. This parameter may be different based on the environment where the bot is running. For local testing, set/verify the following:
action_endpoint:
url: "http://localhost:5055/webhook"
rasa run actions
rasa shell
Prerequisite: Ensure you install Rasa X first
Follow the above steps to start the rasa action server, then run the bot with the following (instead):
rasa x