Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/murtaza98/sales-bot-in-rasa


https://github.com/murtaza98/sales-bot-in-rasa

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# Sales Bot in Rasa

## Requirements

- Python 3.6 or Python 3.7 [Install Python 3.7 on Ubuntu 18.04](https://linuxize.com/post/how-to-install-python-3-7-on-ubuntu-18-04/)
- Docker
- [Tensorflow Hardware requirements](https://www.tensorflow.org/install/pip#hardware-requirements)
> Note if your hardware doesn't support `AVX` instructions then u will have to build tensorflow from source as described [here](https://www.tensorflow.org/install/source)

## Installation

1. Install Python. **Please make sure to install Python 3.6 or Python 3.7. Rasa won't work with any other python version**

**Windows**

You can install it from [here](https://www.python.org/downloads/windows/)


**macOS**
```bash
$ brew update
$ brew install python3.7
```

**Linux**
- Follow [this](https://linuxize.com/post/how-to-install-python-3-7-on-ubuntu-18-04/) blog

2. Install, create and activate a Virtual Environment
1. Install virtual Environment

`python -m pip install --user virtualenv`
2. Create a virtual environment

**Linux / macOS**
```bash
$ python3 -m venv ./venv
```

**Windows**
```bash
C:\> python3 -m venv ./venv
```
3. Activate the virtual environment:

**Linux / macOS**
```bash
$ source ./venv/bin/activate
```

**Windows**
```bash
C:\> .\venv\Scripts\activate
```

3. Install the required packages from requirements.txt inside this virtual environment:

`pip install -r requirements.txt`

4. Install spacy. Ref: [here](https://rasa.com/docs/rasa/user-guide/installation/#dependencies-for-spacy)
```bash
$ pip install rasa[spacy]
$ python -m spacy download en_core_web_md
$ python -m spacy link en_core_web_md en
```
5. Train the model
```bash
$ rasa train
```

## Usage Instructions:
1. Activate the environment:
- **Linux / macOS:** `source venv/bin/activate`
- **Windows:** `.\venv\Scripts\activate.bat`
2. Open a new terminal and run actions
- `rasa run actions`
3. Open a new terminal and run duckling which is used for entity extraction
```
docker run -p 8000:8000 rasa/duckling
```
3. Lastly, open a new terminal to run rasa

`rasa run`