Skip to content

Commit 54418d4

Browse files
committed
adding note
1 parent 53151fc commit 54418d4

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

articles/cognitive-services/language-service/sentiment-opinion-mining/how-to/call-api.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@ By default, sentiment analysis will use the latest available AI model on your te
5656
|--|--|
5757
| `2019-10-01`, `2020-04-01`, `2021-10-01` | `2021-10-01` |
5858

59+
> [!IMPORTANT]
60+
> 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.
61+
> * [REST API](https://westus2.dev.cognitive.microsoft.com/docs/services/TextAnalytics-v3-1/operations/Sentiment)
62+
> * [.NET](https://docs.microsoft.com/dotnet/api/azure.ai.textanalytics.analyzesentimentaction?view=azure-dotnet#properties)
63+
> * [Python](https://docs.microsoft.com/python/api/azure-ai-textanalytics/azure.ai.textanalytics.textanalyticsclient?view=azure-python#analyze-sentiment-documents----kwargs-)
64+
> * [Java](https://docs.microsoft.com/java/api/com.azure.ai.textanalytics.models.analyzesentimentoptions.setmodelversion?view=azure-java-stable#com_azure_ai_textanalytics_models_AnalyzeSentimentOptions_setModelVersion_java_lang_String_)
65+
> * [JavaScript](https://docs.microsoft.com/javascript/api/@azure/ai-text-analytics/analyzesentimentoptions?view=azure-node-latest)
66+
5967
### Input languages
6068

6169
When you submit documents to be processed by sentiment analysis, you can specify which of [the supported languages](../language-support.md) they're written in. If you don't specify a language, sentiment analysis will default to English. The API may return offsets in the response to support different [multilingual and emoji encodings](../../concepts/multilingual-emoji-support.md).

articles/cognitive-services/language-service/whats-new.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,13 @@ Azure Cognitive Service for Language is updated on an ongoing basis. To stay up-
3030
* [Custom Text Classification preview](custom-classification/overview.md)
3131
* [Conversational Language Understanding preview](conversational-language-understanding/overview.md)
3232

33-
* Model version `2021-10-01` for [Sentiment Analysis and Opinion mining](sentiment-opinion-mining/overview.md), which provides
33+
* Model version `2021-10-01` for [Sentiment Analysis and Opinion mining](sentiment-opinion-mining/overview.md), which provides:
3434
* Improved prediction quality.
3535
* [Additional language support](sentiment-opinion-mining/language-support.md?tabs=sentiment-analysis) for the opinion mining feature.
3636
* For more information, see the [project z-code site](https://www.microsoft.com/research/project/project-zcode/).
37-
37+
> [!NOTE]
38+
> To use this [model version](sentiment-opinion-mining/how-to/use-api.md#specify-the-sentiment-analysis-model), you must specify it in your API calls, using the model version parameter.
39+
3840
## Next steps
3941

4042
* [What is Azure Cognitive Service for Language?](overview.md)

0 commit comments

Comments
 (0)