Skip to content

Commit 9957ca3

Browse files
updating datasource and instructions
1 parent e2495b0 commit 9957ca3

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

AzureML-Custom-Skill/notebook/custom_skill_azureml.ipynb

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"\n",
2222
"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",
2323
"\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",
2525
"\n",
2626
"## Prerequisites\n",
2727
"\n",
@@ -177,16 +177,17 @@
177177
"\n",
178178
"headers = {'api-key': api_key, 'Content-Type': content_type}\n",
179179
"# 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",
182182
"print(construct_Url(search_service, \"indexers\", None, None, api_version))"
183183
]
184184
},
185185
{
186186
"cell_type": "markdown",
187187
"metadata": {},
188188
"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."
190191
]
191192
},
192193
{
@@ -195,13 +196,11 @@
195196
"metadata": {},
196197
"outputs": [],
197198
"source": [
198-
"# Replace with the container name, storage account name, storage account connection string\n",
199199
"container = datasource_container\n",
200200
"\n",
201-
"\n",
202201
"datsource_def = {\n",
203202
" '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",
205204
" 'type': 'azureblob',\n",
206205
" 'subtype': None,\n",
207206
" 'credentials': {\n",

0 commit comments

Comments
 (0)