--- title: "Sentiment Analysis" url: https://docs.catalyst.zoho.com/en/sdk/python/v1/zia-services/text-analytics/sentiment-analysis/ description: "This page describes the method to use the sentiment analysis feature in your Python application with sample code snippets." last_updated: 2025-11-19T15:07:41Z service: Zia Services type: general related_links: - name: "Sentiment Analysis - API" url: /en/api/code-reference/zia-services/text-analytics/sentiment-analysis/#SentimentAnalysis - name: "Sentiment Analysis Help" url: /en/zia-services/help/text-analytics/key-concepts/#sentiment-analysis - name: "SDK Scopes" url: /en/sdk/python/v1/sdk-scopes --- # Sentiment Analysis [Zia Sentiment Analysis](https://docs.catalyst.zoho.com/en/zia-services/help/text-analytics/key-concepts/#sentiment-analysis) is a part of Text Analytics that processes textual content to recognize the tone of the message, and the sentiments conveyed through it. It analyzes each sentence in the text to determine if its tone is **positive**, **negative**, or **neutral**. It then determines the tone of the overall text as one of the these three sentiments, based on the sentiments recognized in each sentence. The response also returns the confidence scores for the sentiments detected in each sentence, to showcase the accuracy of the analysis. The confidence score lies in the range of 0 to 1\. A confidence score for the overall analysis is also returned. You can pass a block of text as the input of upto **1500 characters** in a single request. The input text is passed to `get_sentiment_analysis()`. You can also pass optional keywords for the text. This will enable Sentiment Analysis to process only those sentences that contain these keywords, and determine their sentiments. Other sentences will be ignored. This method takes in a second parameter as an empty list. To know more about the component instance `zia` used below, please refer to [this help section](https://docs.catalyst.zoho.com/en/sdk/python/v1/zia-services/get-component-instance/). **Parameters Used**
| Parameter Name | Data Type | Definition |
|---|---|---|
| `text` | String | A **Mandatory** parameter. Will store the text to be analyzed. |
| `keyword` | String | A **Optional** parameter. Will store the keywords to filter sentences containing them and analyze their sentiments. |