The instructions down below will get you a copy of the project up and running on your local machine for development and testing purposes.
You need to install Python and the package manager PIP. When you install Python <= 3.4 from the official website, PIP is already installed.
Rasa needs either Python 3.6 or 3.7.
To check your Python Version, enter the following command in your console/terminal.
# Install virtual enviroment
python3 --version
If the version number starts with 3.6 or 3.7, you can continue with the the installation here.
If you get an error saying "python3: command not found", please install Python 3.7.8 from here and with the the installation here.
If you get a different version number, you need to follow the instructions for pyenv-virtualenv here
# Install virtual enviroment
pip install virtualenv
First set-up and start the virtual environment.
# Create virtualenv
virtualenv -p python3 bot
# Start environment
source bot/bin/activate
Take a look at the official documentation for more information regarding the installation of pyenv-virtualenv.
- Check out pyenv-virtualenv into plugin directory.
sh $ git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv
- Add
pyenv virtualenv-init
to your console/terminal to enable auto-activation of virtualenvs. This is entirely optional but pretty useful. See "Activate virtualenv" below. ```sh $ echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bash_profile
Next, run the following commands. It will download the Python version we want to use and set up a virtual environment.
```bash
pyenv install 3.7.8
pyenv virtualenv 3.7.8 bot
Start the virtual environment using
pyenv activate bot
Now, continue with the next section.
Now clone the repo to the "src"-folder or download the repo as zip, unpack the folder, move it into the folder of your environment and rename it to "src".
# Clone repository to current directory
cd bot
git clone https://github.com/fbennets/HCLC-GDPR-Bot src
Next install the requirements. If you get to many dependency errors, try to use the second command.
# Install dependencies
cd src
pip install -r requirements.txt
OR
pip install rasa[spacy]
Now, get the models for spacy to do the language processing.
python -m spacy download de_core_news_md
python -m spacy link de_core_news_md de
Train the language model and run the tests.
rasa train
rasa test
You're ready to start a conversation with your bot!
rasa shell
- Rasa - The Rasa bot-framework used
This project is licensed under the MIT License - see the LICENSE file for details.