Merge pull request #3 from basitanwer/main
Browse filesFixed a couple of issues of formatting and requirements.txt
- README.md +10 -7
- actions/actions.py +1 -1
- requirements.txt +1 -3
README.md
CHANGED
@@ -53,9 +53,11 @@ The results sum up to be this:
|
|
53 |
|
54 |
## Setup & Play
|
55 |
|
56 |
-
|
57 |
-
|
58 |
-
|
|
|
|
|
59 |
|
60 |
### Set-up Rasa
|
61 |
|
@@ -81,19 +83,20 @@ Operating System : Linux
|
|
81 |
Python Path : /bin/python3
|
82 |
```
|
83 |
|
84 |
-
> Windows & WSL works too
|
85 |
|
86 |
### Set-up repo
|
87 |
|
88 |
-
|
89 |
-
|
|
|
90 |
|
91 |
```bash
|
92 |
pip install -r requirements.txt
|
93 |
python3 -m spacy download en_core_web_md
|
94 |
```
|
95 |
|
96 |
-
This will install the spacy model `en_core_web_md`
|
97 |
Now you'll need to train the rasa bot
|
98 |
|
99 |
```bash
|
|
|
53 |
|
54 |
## Setup & Play
|
55 |
|
56 |
+
Clone this repository and afterwards install Rasa using following instructions.
|
57 |
+
|
58 |
+
> You might want to create a
|
59 |
+
> [virtual environment](https://docs.python.org/3/library/venv.html) to isolate
|
60 |
+
> the dependencies rasa requires.
|
61 |
|
62 |
### Set-up Rasa
|
63 |
|
|
|
83 |
Python Path : /bin/python3
|
84 |
```
|
85 |
|
86 |
+
> Windows & WSL (Windows Subsystem for Linux) works too
|
87 |
|
88 |
### Set-up repo
|
89 |
|
90 |
+
You should be in the cloned repository folder before running following commands.
|
91 |
+
The bot uses spacy in its pipeline & requires you to have it installed. Run the
|
92 |
+
following commands in shell
|
93 |
|
94 |
```bash
|
95 |
pip install -r requirements.txt
|
96 |
python3 -m spacy download en_core_web_md
|
97 |
```
|
98 |
|
99 |
+
This will install the spacy model `en_core_web_md` the bot is configured with.
|
100 |
Now you'll need to train the rasa bot
|
101 |
|
102 |
```bash
|
actions/actions.py
CHANGED
@@ -99,7 +99,7 @@ def print_responses(response_set, sqlite_cursor):
|
|
99 |
t = result["text"]
|
100 |
text_list.append(f"{highlight(fulltext, t)}")
|
101 |
text_list.append(
|
102 |
-
"*" + f"
|
103 |
text_list.append("\n")
|
104 |
break
|
105 |
return text_list
|
|
|
99 |
t = result["text"]
|
100 |
text_list.append(f"{highlight(fulltext, t)}")
|
101 |
text_list.append(
|
102 |
+
"*" + f" > \"Jumeirah Hotels & Resorts\" reviewed on {date}" + " *")
|
103 |
text_list.append("\n")
|
104 |
break
|
105 |
return text_list
|
requirements.txt
CHANGED
@@ -1,3 +1 @@
|
|
1 |
-
|
2 |
-
textwrap
|
3 |
-
spacy
|
|
|
1 |
+
spacy
|
|
|
|