You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Text Analytics client is a `TextAnalyticsClient` object that authenticates to Azure using your key. The client provides several methods for analyzing text as a batch.
72
72
@@ -95,7 +95,7 @@ These code snippets show you how to do the following tasks with the Text Analyti
95
95
96
96
## Authenticate the client
97
97
98
-
#### [Version 3.0-preview](#tab/version-3)
98
+
#### [Version 3.0](#tab/version-3)
99
99
100
100
Create a function to instantiate the `TextAnalyticsClient` object with your `key` AND `endpoint` created above. Then create a new client.
101
101
@@ -124,7 +124,7 @@ Create a function to instantiate the `TextAnalyticsClient` object with your `key
124
124
125
125
## Sentiment analysis
126
126
127
-
#### [Version 3.0-preview](#tab/version-3)
127
+
#### [Version 3.0](#tab/version-3)
128
128
129
129
Create a new function called `sentiment_analysis_example()` that takes the client as an argument, then calls the `analyze_sentiment()` function. The returned response object will contain the sentiment label and score of the entire input document, as well as a sentiment analysis for each sentence.
Create a new function called `language_detection_example()` that takes the client as an argument, then calls the `detect_language()` function. The returned response object will contain the detected language in `primary_language` if successful, and an `error` if not.
> * Entity linking is a separate request than NER.
245
245
246
246
Create a new function called `entity_recognition_example` that takes the client as an argument, then calls the `recognize_entities()` function and iterates through the results. The returned response object will contain the list of detected entities in `entity` if successful, and an `error` if not. For each detected entity, print its Category and Sub-Category if exists.
Create a new function called `key_phrase_extraction_example()` that takes the client as an argument, then calls the `extract_key_phrases()` function. The result will contain the list of detected key phrases in `key_phrases` if successful, and an `error` if not. Print any detected key phrases.
0 commit comments