Skip to content

Commit 397a31b

Browse files
committed
updating images
1 parent 419c827 commit 397a31b

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed
-27.8 KB
Loading
4.85 KB
Loading

articles/cognitive-services/text-analytics/tutorials/tutorial-power-bi-key-phrases.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ Now, in the **Home** ribbon, in the **Query** group, click **Advanced Editor** t
118118
// Returns key phrases from the text in a comma-separated list
119119
(text) => let
120120
apikey = "YOUR_API_KEY_HERE",
121-
endpoint = "https://<your-custom-subdomain>.cognitiveservices.azure.com/text/analytics" + "/v2.1/keyPhrases",
121+
endpoint = "https://<your-custom-subdomain>.cognitiveservices.azure.com/text/analytics" & "/v2.1/keyPhrases",
122122
jsontext = Text.FromBinary(Json.FromValue(Text.Start(Text.Trim(text), 5000))),
123123
jsonbody = "{ documents: [ { language: ""en"", id: ""0"", text: " & jsontext & " } ] }",
124124
bytesbody = Text.ToBinary(jsonbody),
@@ -162,7 +162,8 @@ Click **Edit Credentials,** make sure `Anonymous` is selected in the dialog, the
162162
> [!NOTE]
163163
> You select `Anonymous` because the Text Analytics service authenticates you using your access key, so Power BI does not need to provide credentials for the HTTP request itself.
164164
165-
![[setting authentication to anonymous]](../media/tutorials/power-bi/access-web-content.png)
165+
> [!div class="mx-imgBorder"]
166+
> ![[setting authentication to anonymous]](../media/tutorials/power-bi/access-web-content.png)
166167
167168
If you see the Edit Credentials banner even after choosing anonymous access, you may have forgotten to paste your Text Analytics access key into the code in the `KeyPhrases` [custom function](#CreateCustomFunction).
168169

@@ -221,7 +222,7 @@ The Sentiment Analysis function below returns a score indicating how positive th
221222
// Returns the sentiment score of the text, from 0.0 (least favorable) to 1.0 (most favorable)
222223
(text) => let
223224
apikey = "YOUR_API_KEY_HERE",
224-
endpoint = "https://<your-custom-subdomain>.cognitiveservices.azure.com/text/analytics/v2.1/sentiment",
225+
endpoint = "https://<your-custom-subdomain>.cognitiveservices.azure.com" & "/text/analytics/v2.1/sentiment",
225226
jsontext = Text.FromBinary(Json.FromValue(Text.Start(Text.Trim(text), 5000))),
226227
jsonbody = "{ documents: [ { language: ""en"", id: ""0"", text: " & jsontext & " } ] }",
227228
bytesbody = Text.ToBinary(jsonbody),
@@ -238,7 +239,7 @@ Here are two versions of a Language Detection function. The first returns the IS
238239
// Returns the two-letter language code (for example, 'en' for English) of the text
239240
(text) => let
240241
apikey = "YOUR_API_KEY_HERE",
241-
endpoint = "https://<your-custom-subdomain>.cognitiveservices.azure.com/text/analytics/v2.1/languages",
242+
endpoint = "https://<your-custom-subdomain>.cognitiveservices.azure.com" & "/text/analytics/v2.1/languages",
242243
jsontext = Text.FromBinary(Json.FromValue(Text.Start(Text.Trim(text), 5000))),
243244
jsonbody = "{ documents: [ { id: ""0"", text: " & jsontext & " } ] }",
244245
bytesbody = Text.ToBinary(jsonbody),
@@ -252,7 +253,7 @@ in language
252253
// Returns the name (for example, 'English') of the language in which the text is written
253254
(text) => let
254255
apikey = "YOUR_API_KEY_HERE",
255-
endpoint = "https://<your-custom-subdomain>.cognitiveservices.azure.com/text/analytics/v2.1/languages",
256+
endpoint = "https://<your-custom-subdomain>.cognitiveservices.azure.com" & "/text/analytics/v2.1/languages",
256257
jsontext = Text.FromBinary(Json.FromValue(Text.Start(Text.Trim(text), 5000))),
257258
jsonbody = "{ documents: [ { id: ""0"", text: " & jsontext & " } ] }",
258259
bytesbody = Text.ToBinary(jsonbody),
@@ -272,7 +273,7 @@ Finally, here's a variant of the Key Phrases function already presented that ret
272273
// Returns key phrases from the text as a list object
273274
(text) => let
274275
apikey = "YOUR_API_KEY_HERE",
275-
endpoint = "https://<your-custom-subdomain>.cognitiveservices.azure.com/text/analytics/v2.1/keyPhrases",
276+
endpoint = "https://<your-custom-subdomain>.cognitiveservices.azure.com" & "/text/analytics/v2.1/keyPhrases",
276277
jsontext = Text.FromBinary(Json.FromValue(Text.Start(Text.Trim(text), 5000))),
277278
jsonbody = "{ documents: [ { language: ""en"", id: ""0"", text: " & jsontext & " } ] }",
278279
bytesbody = Text.ToBinary(jsonbody),

0 commit comments

Comments
 (0)