Skip to main content

Analyse sentiment

Read whether a text is positive, neutral, negative or mixed, overall and sentence by sentence (Azure AI Language).

Command in the Azure AI services toolkit · id ooa.azure_ai/language_sentiment · 3 inputs (1 required), 3 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
SessionStringNoazure_aiName of the session opened by Connect.
TextStringYesThe text to read, at most 5,120 characters.
LanguageStringNoenLanguage of the text, e.g. en, de, fr, es or hi.

Outputs​

OutputTypeWhat it is
sentimentStringpositive, neutral, negative or mixed.
scoresDictionaryConfidence from 0 to 1 for each, e.g. {"positive": 0.95, "neutral": 0.04, "negative": 0.01}.
sentencesTableColumns: text, sentiment, positive, neutral, negative.