Search⌘ K

Perform Sentiment and Key Phrase Extraction on Text

Explore how to perform sentiment analysis and extract key phrases from text using Azure Cognitive Services. Understand how to set up and call the Text Analytics API with Python, send properly formatted requests, and interpret the results at document and sentence levels.

Perform sentiment analysis on text

Let’s first see how we can perform sentiment analysis using the text analytics service from Azure. Before starting, you will need two things:

  • The subscription key for the service
  • The endpoint for your service

You can find these details on your Azure Portal by viewing the image below.

Explanation:

  • Once you are on your text analytics resource dashboard, click on the “Keys and Endpoint” button from the left navigation bar. There you can see the two keys (you can use any one of them to call your endpoint) and your endpoint.
...