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
Copy file name to clipboardExpand all lines: articles/cognitive-services/language-service/sentiment-opinion-mining/how-to/call-api.md
+24-3Lines changed: 24 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,9 +52,30 @@ If you're using the REST API, to get Opinion Mining in your results, you must in
52
52
53
53
By default, sentiment analysis will use the latest available AI model on your text. You can also configure your API requests to use a specific model version. The model you specify will be used to perform sentiment analysis operations.
To use the a preview model version in your API calls, you must specify the model version using the model version parameter. For example, if you were sending a request using Python:
62
+
63
+
```python
64
+
result = text_analytics_client.analyze_sentiment(documents, show_opinion_mining=True, model_version="2021-10-01-preview")
Copy file name to clipboardExpand all lines: articles/cognitive-services/language-service/whats-new.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,11 +31,13 @@ Azure Cognitive Service for Language is updated on an ongoing basis. To stay up-
31
31
*[Custom Text Classification preview](custom-classification/overview.md)
32
32
*[Conversational Language Understanding preview](conversational-language-understanding/overview.md)
33
33
34
-
*Model version `2021-10-01` for [Sentiment Analysis and Opinion mining](sentiment-opinion-mining/overview.md), which provides
34
+
*Preview model version `2021-10-01-preview` for [Sentiment Analysis and Opinion mining](sentiment-opinion-mining/overview.md), which provides:
35
35
* Improved prediction quality.
36
36
*[Additional language support](sentiment-opinion-mining/language-support.md?tabs=sentiment-analysis) for the opinion mining feature.
37
37
* For more information, see the [project z-code site](https://www.microsoft.com/research/project/project-zcode/).
38
-
38
+
> [!NOTE]
39
+
> To use this [model version](sentiment-opinion-mining/how-to/call-api.md#specify-the-sentiment-analysis-model), you must specify it in your API calls, using the model version parameter.
40
+
39
41
## Next steps
40
42
41
43
*[What is Azure Cognitive Service for Language?](overview.md)
0 commit comments