Understanding Text Analytics API In Azure

This article will cover the following.

  • Brief concepts and prerequisites
  • Implementation – Create a new Text Analytics API
  • Implementation – Access the Text Analytics API

Text Analytics API

The Text Analytics API is a tool that uses a few lines of code to easily analyze sentiment, extract key phrases, and detect language for any kind of text.

Sentiment analysis

Find out what users think about your products or services. You can score the overall sentiment of text.

Key phrase extraction

Automatically extract key phrases from text to quickly identify the main points.

Language detection

Determine what language a piece of text is written in-from 120 supported languages.

Prerequisites

Read the following article to create an Azure account and for some basic information about Azure to get started.

Implementation – Create a new Text Analytics API

  • Open the Azure portal and click on "Add". Choose category as “AI + Cognitive Services” and then, select the option of “Text Analytics API”.
  • Fill in the details and create a new resource-group. Then, click on “Create”.
  • Go to the “All resources” section and locate newly created “Text Analytics API” named as “text-analytics-api-10-10”.
  • Open the particular Text Analytics API there and explore different options available.

Implementation – Access the Text Analytics API

  • In the opened section of the Text Analytics API, click on the “Quick start" option.
  • Click “Grab Keys” and copy - paste the “KEY-1” into Notepad file from here.
  • Then, go to “Make an API call” and click on the Text Analytics API reference.
  • Then, click on the “South East Asia URL” from there as we have created the API in that region only and open the test console.
  • Here, fill in the subscription-key and all with the required JSON body and put a “Russian” word in the text.
  • Then, click on "Send" to see the result where API has detected this word as Russian.

Happy Learning!


Similar Articles