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-11Lines changed: 24 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,17 +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 latest model version in your API calls, you must specify `2021-10-01` using the model version parameter. See the reference documentation for more information.
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")
0 commit comments