Basit Anwer commited on
Commit
abcb242
·
1 Parent(s): 400eb94

Addressed comments

Browse files
Files changed (2) hide show
  1. README.md +7 -6
  2. actions/actions.py +2 -1
README.md CHANGED
@@ -60,7 +60,7 @@ the dependencies rasa requires.
60
  ### Set-up Rasa
61
 
62
  Follow the
63
- [rasa installation instrcutions](https://rasa.com/docs/rasa/installation) or
64
  copy-paste the following commands in terminal
65
 
66
  ```bash
@@ -135,15 +135,16 @@ Use the following information to customize the bot and the source of data.
135
  Data for the bot is sourced from [OpinRank](https://github.com/kavgan/OpinRank/)
136
  and reviews for Hotel Jumeirah are specifically used for this bot. Reviews are
137
  parsed from https://github.com/amin3141/zir-souffle. Use `hotels.py` to generate
138
- the output `json` and the `reviews.db`. Copy the generated `reviews.db` file
139
- to this repository.
140
 
141
- Create a corpus on [Zir AI](http://zir-ai.com) and upload all the `JSON files.
142
- Create an API key for access and note down the following information
 
143
 
144
  - API key
145
  - corpus id
146
- - customer-id
147
 
148
  ### Rasa Custom Action
149
 
 
60
  ### Set-up Rasa
61
 
62
  Follow the
63
+ [rasa installation instructions](https://rasa.com/docs/rasa/installation) or
64
  copy-paste the following commands in terminal
65
 
66
  ```bash
 
135
  Data for the bot is sourced from [OpinRank](https://github.com/kavgan/OpinRank/)
136
  and reviews for Hotel Jumeirah are specifically used for this bot. Reviews are
137
  parsed from https://github.com/amin3141/zir-souffle. Use `hotels.py` to generate
138
+ the output `json` and the `reviews.db`. Copy the generated `reviews.db` file to
139
+ this repository.
140
 
141
+ Create a corpus on [Zir AI](https://zir-ai.com/console/corpora) and upload all
142
+ the JSON files. Create an API key for access and note down the following
143
+ information
144
 
145
  - API key
146
  - corpus id
147
+ - customer id
148
 
149
  ### Rasa Custom Action
150
 
actions/actions.py CHANGED
@@ -68,7 +68,8 @@ class ActionDefaultFallback(Action):
68
  else:
69
  textQuery = print_responses(parsed["responseSet"][0], self.cur)
70
  textQuery.insert(0, "\n")
71
- textQuery.insert(0, "This is what i found in the reviews:")
 
72
  textQuery = "\n".join(textQuery)
73
  dispatcher.utter_message(text=textQuery)
74
 
 
68
  else:
69
  textQuery = print_responses(parsed["responseSet"][0], self.cur)
70
  textQuery.insert(0, "\n")
71
+ textQuery.insert(
72
+ 0, "Here's what other customers had to say about that:")
73
  textQuery = "\n".join(textQuery)
74
  dispatcher.utter_message(text=textQuery)
75