Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/murtaza98/sales-bot-in-rasa
https://github.com/murtaza98/sales-bot-in-rasa
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/murtaza98/sales-bot-in-rasa
- Owner: murtaza98
- Created: 2020-07-12T09:03:11.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T11:08:52.000Z (almost 2 years ago)
- Last Synced: 2024-10-03T08:59:33.891Z (about 2 months ago)
- Language: Python
- Size: 107 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
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/) blog2. 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`