|
| 1 | +--- |
| 2 | +author: jboback |
| 3 | +manager: nitinme |
| 4 | +ms.service: azure-ai-language |
| 5 | +ms.topic: include |
| 6 | +ms.date: 02/16/2025 |
| 7 | +ms.author: jboback |
| 8 | +--- |
| 9 | + |
| 10 | +## Prerequisites |
| 11 | + |
| 12 | +* [Create a Project in Foundry in the Azure AI Foundry Portal](../../../../../ai-studio/how-to/create-projects.md) |
| 13 | + |
| 14 | +## Navigate to the Azure AI Foundry Playground |
| 15 | + |
| 16 | +Using the left side pane, select **Playgrounds**. Then select the **Try the Language Playground** button. |
| 17 | + |
| 18 | +:::image type="content" source="../../media/quickstarts/azure-ai-foundry/foundry-playground-navigation.png" alt-text="The development lifecycle" lightbox="../../media/quickstarts/azure-ai-foundry/foundry-playground-navigation.png"::: |
| 19 | + |
| 20 | +## Use Sentiment Analysis in the Azure AI Foundry Playground |
| 21 | + |
| 22 | +The **Language Playground** consists of four sections: |
| 23 | + |
| 24 | +* Top banner: You can select any of the currently available Language services here. |
| 25 | +* Right pane: This pane is where you can find the **Configuration** options for the service, such as the API and model version, along with features specific to the service. |
| 26 | +* Center pane: This pane is where you enter your text for processing. After the operation is run, some results are shown here. |
| 27 | +* Right pane: This pane is where **Details** of the run operation are shown. |
| 28 | + |
| 29 | +Here you can select the Sentiment Analysis capability my choosing the top banner tile, **Analyze sentiment**. |
| 30 | + |
| 31 | +## Use Analyze sentiment |
| 32 | + |
| 33 | +**Analyze sentiment** is designed to identify positive, negative and neutral sentiment in text. |
| 34 | + |
| 35 | +In **Configuration** there are the following options: |
| 36 | + |
| 37 | +|Option |Description | |
| 38 | +|--------------------|-----------------------------------------| |
| 39 | +|Select API version | Select which version of the API to use. | |
| 40 | +|Select model version| Select which version of the model to use.| |
| 41 | +|Select text language| Select the language of the input text. | |
| 42 | +|Enable opinion mining| Enables or disables the opinion mining skill.| |
| 43 | + |
| 44 | +After your operation is completed, the type of entity is displayed beneath each entity in the center pane and the **Details** section contains the following fields for the overall sentiment and the sentiment of each sentence: |
| 45 | + |
| 46 | +|Field | Description | |
| 47 | +|------|----------------------------| |
| 48 | +|Sentence number|The number of the sentence in the order it was typed. This field is not present for **Overall sentiment**.| |
| 49 | +|Sentiment| The detected overall sentiment for the segment of text.| |
| 50 | +|Scores| The amount of positive, neutral and negative sentiment detected in the text segment.| |
| 51 | + |
| 52 | +The following fields are only present if opinion mining is enabled: |
| 53 | + |
| 54 | +|Field | Description | |
| 55 | +|------|----------------------------| |
| 56 | +|Target|The target of the detected opinion.| |
| 57 | +|Assessments| The detected opinion and the detected persuasion (positive, neutral, negative), as well as the percent of detected persuasion.| |
| 58 | + |
| 59 | +:::image type="content" source="../../media/quickstarts/azure-ai-foundry/sentiment-opinion-mining.png" alt-text="An example of Analyze sentiment in azure AI studio" lightbox="../../media/quickstarts/azure-ai-foundry/sentiment-opinion-mining.png"::: |
0 commit comments