|
21 | 21 | "\n", |
22 | 22 | "To train the aspect-based sentiment model, you will be using the [nlp recipes repository](https://github.com/microsoft/nlp-recipes/tree/master/examples/sentiment_analysis/absa). The model will then be deployed as an endpoint on an Azure Kubernetes cluster. Once deployed, the model is added to the enrichment pipeline as a custom skill for use by the Cognitive Search service.\n", |
23 | 23 | "\n", |
24 | | - "There are two datasets provided. To train the model the larger of the two datasets, the hotel_reviews_1000.csv, is required. Prefer to skip the training step? Download the hotel_reviews_100.csv.\n", |
| 24 | + "There are two datasets provided. To train the model the larger of the two datasets, the `hotel_reviews_1000.csv`, is required. Prefer to skip the training step? Download the `hotel_reviews_100.csv`.\n", |
25 | 25 | "\n", |
26 | 26 | "## Prerequisites\n", |
27 | 27 | "\n", |
|
177 | 177 | "\n", |
178 | 178 | "headers = {'api-key': api_key, 'Content-Type': content_type}\n", |
179 | 179 | "# Test out the URLs to ensure that the configuration works\n", |
180 | | - "print(construct_Url(search_service, \"indexes\", \"custom-ner\", \"analyze\", api_version))\n", |
181 | | - "print(construct_Url(search_service, \"indexes\", \"custom-ner\", None, api_version))\n", |
| 180 | + "print(construct_Url(search_service, \"indexes\", \"azureml-sentiment\", \"analyze\", api_version))\n", |
| 181 | + "print(construct_Url(search_service, \"indexes\", \"azureml-sentiment\", None, api_version))\n", |
182 | 182 | "print(construct_Url(search_service, \"indexers\", None, None, api_version))" |
183 | 183 | ] |
184 | 184 | }, |
185 | 185 | { |
186 | 186 | "cell_type": "markdown", |
187 | 187 | "metadata": {}, |
188 | 188 | "source": [ |
189 | | - "## 1.1 Create datasource" |
| 189 | + "## 1.1 Create datasource\n", |
| 190 | + "Be sure to upload `hotel_reviews_1000.csv` or `hotel_reviews_100.csv` to your storage account before continuing." |
190 | 191 | ] |
191 | 192 | }, |
192 | 193 | { |
|
195 | 196 | "metadata": {}, |
196 | 197 | "outputs": [], |
197 | 198 | "source": [ |
198 | | - "# Replace with the container name, storage account name, storage account connection string\n", |
199 | 199 | "container = datasource_container\n", |
200 | 200 | "\n", |
201 | | - "\n", |
202 | 201 | "datsource_def = {\n", |
203 | 202 | " 'name': f'{datasource_container}-ds',\n", |
204 | | - " 'description': f'km-aml solution accelerator- Datasource to label and extract custom entities from a corpus in STORAGEACCOUNTNAME, container datasource_container',\n", |
| 203 | + " 'description': f'Datasource with hotel reviews',\n", |
205 | 204 | " 'type': 'azureblob',\n", |
206 | 205 | " 'subtype': None,\n", |
207 | 206 | " 'credentials': {\n", |
|
0 commit comments