Sentiment Analysis Activity
The Sentiment Analysis activity enables the evaluation of text data to determine the emotional tone and sentiment of a given input. By leveraging Microsoft Cognitive Services, this activity identifies positive or negative sentiment and associates them with specific aspects of the text to provide actionable insights.
| Field | Description | Requirement |
|---|---|---|
| Ocp Apim Subscription Key | The unique Microsoft Language API key used for authentication. | Required |
| Endpoint | The Microsoft Language API URL associated with the cognitive service resource. | Required |
| Text | The specific text content to be analyzed for sentiment and opinion mining. | Required |
| Response variable name | The name of the variable where the HTTP response data will be stored. | Required |
Action Types & Examples
Sentiment Detection
- Format: String
- Example Result: "positive"
Confidence Score
- Format: Digit
- Example Result: "0.99"
Implementation Examples
Field Setup - Ocp Apim Subscription Key: 2dfc034684a3434fb3270534c5efdc66 - Endpoint: https://yourapiurl.cognitiveservices.azure.com/
Execution Parameters - Text: "Great atmosphere. Close to plenty of restaurants, hotels, and transit! Staff are friendly and helpful." - Response variable name: getResponse
Technical Notes
This activity integrates with Microsoft Azure Cognitive Services. Users must ensure that the API endpoint and subscription key are correctly provisioned in the Azure portal. The response variable will contain the raw JSON output from the Language API, which includes sentiment labels and confidence scores for the analyzed text.