Skip to content

Commit 3a7a07e

Browse files
authored
Merge pull request #40 from ashly1yeo/patch-45
Update text-analytics-how-to-keyword-extraction.md
2 parents b110dd5 + 3617c71 commit 3a7a07e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

articles/cognitive-services/text-analytics/how-tos/text-analytics-how-to-keyword-extraction.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ms.author: aahi
1414

1515
# Example: How to extract key phrases using Text Analytics
1616

17-
The [Key Phrase Extraction API](https://westcentralus.dev.cognitive.microsoft.com/docs/services/TextAnalytics-v2-1/operations/56f30ceeeda5650db055a3c6) evaluates unstructured text, and for each JSON document, returns a list of key phrases.
17+
The [Key Phrase Extraction API](https://westus2.dev.cognitive.microsoft.com/docs/services/TextAnalytics-v3-0/operations/KeyPhrases) evaluates unstructured text, and for each JSON document, returns a list of key phrases.
1818

1919
This capability is useful if you need to quickly identify the main points in a collection of documents. For example, given input text "The food was delicious and there were wonderful staff", the service returns the main talking points: "food" and "wonderful staff".
2020

@@ -67,7 +67,7 @@ Document size must be 5,120 or fewer characters per document, and you can have u
6767

6868
For information about request definition, see [How to call the Text Analytics API](text-analytics-how-to-call-api.md). The following points are restated for convenience:
6969

70-
+ Create a **POST** request. Review the API documentation for this request: [Key Phrases API](https://westcentralus.dev.cognitive.microsoft.com/docs/services/TextAnalytics-v2-1/operations/56f30ceeeda5650db055a3c6).
70+
+ Create a **POST** request. Review the API documentation for this request: [Key Phrases API](https://westus2.dev.cognitive.microsoft.com/docs/services/TextAnalytics-v3-0/operations/KeyPhrases).
7171

7272
+ Set the HTTP endpoint for key phrase extraction by using either a Text Analytics resource on Azure or an instantiated [Text Analytics container](text-analytics-how-to-install-containers.md). You must include `/text/analytics/v3.0/keyPhrases` in the URL. For example: `https://<your-custom-subdomain>.api.cognitiveservices.azure.com/text/analytics/v3.0/keyPhrases`.
7373

@@ -76,7 +76,7 @@ For information about request definition, see [How to call the Text Analytics AP
7676
+ In the request body, provide the JSON documents collection you prepared for this analysis.
7777

7878
> [!Tip]
79-
> Use [Postman](text-analytics-how-to-call-api.md) or open the **API testing console** in the [documentation](https://westcentralus.dev.cognitive.microsoft.com/docs/services/TextAnalytics-v2-1/operations/56f30ceeeda5650db055a3c6) to structure a request and POST it to the service.
79+
> Use [Postman](text-analytics-how-to-call-api.md) or open the **API testing console** in the [documentation](https://westus2.dev.cognitive.microsoft.com/docs/services/TextAnalytics-v3-0/operations/KeyPhrases) to structure a request and POST it to the service.
8080
8181
## Step 2: Post the request
8282

@@ -147,7 +147,7 @@ As noted, the analyzer finds and discards non-essential words, and it keeps sing
147147

148148
In this article, you learned concepts and workflow for key phrase extraction by using Text Analytics in Cognitive Services. In summary:
149149

150-
+ [Key phrase extraction API](https://westcentralus.dev.cognitive.microsoft.com/docs/services/TextAnalytics-v2-1/operations/56f30ceeeda5650db055a3c6) is available for selected languages.
150+
+ [Key phrase extraction API](https://westus2.dev.cognitive.microsoft.com/docs/services/TextAnalytics-v3-0/operations/KeyPhrases) is available for selected languages.
151151
+ JSON documents in the request body include an ID, text, and language code.
152152
+ POST request is to a `/keyphrases` endpoint, using a personalized [access key and an endpoint](../../cognitive-services-apis-create-account.md#get-the-keys-for-your-resource) that is valid for your subscription.
153153
+ Response output, which consists of key words and phrases for each document ID, can be streamed to any app that accepts JSON, including Microsoft Office Excel and Power BI, to name a few.
@@ -161,4 +161,4 @@ In this article, you learned concepts and workflow for key phrase extraction by
161161
## Next steps
162162

163163
> [!div class="nextstepaction"]
164-
> [Text Analytics API](https://westus.dev.cognitive.microsoft.com/docs/services/TextAnalytics-V2-1/operations/56f30ceeeda5650db055a3c6)
164+
> [Text Analytics API](https://westus2.dev.cognitive.microsoft.com/docs/services/TextAnalytics-V3-0/)

0 commit comments

Comments
 (0)