Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Cover image for Key phrase extraction with Azure Cognitive Services
Microsoft Azure profile imageBurke Holland
Burke Holland forMicrosoft Azure

Posted on

     

Key phrase extraction with Azure Cognitive Services

We've selected our favorite tips and tricks created byMichael Crump and are delivering fresh technical content on Azure all April! Miss a day (or more)?Catch up with the series.

Don't have Azure?Grab a free subscription.

I recently took a look at Text Analysis that was introduced with Cognitive Services and is now inside the Azure portal. If you open the Azure portal and look forAI and Machine Learning then you'll see the following:

Let's giveText Analysis a spin. Open the blade and fill out the following info. Be sure to select theFree tier (F0) as shown below:

SelectKeys and copy the value of Key 1.

We'll usePostman to test. Go ahead and download it if you haven't already and once complete you'll use one of the following endpoints depending on what you want to use.

https://westus.api.cognitive.microsoft.com/text/analytics/v2.0/sentimenthttps://westus.api.cognitive.microsoft.com/text/analytics/v2.0/keyPhraseshttps://westus.api.cognitive.microsoft.com/text/analytics/v2.0/languages
Enter fullscreen modeExit fullscreen mode

We'll use thekeyPhrases endpoint for learning purposes.

What are Key Phrases? They automatically extract key phrases to quickly identify the main points.

Copy thehttps://westus.api.cognitive.microsoft.com/text/analytics/v2.0/keyPhrases url into Postman and set the following three header properties:

  • Ocp-Apim-Subscription-Key = should be your Key 1 (from our discussion earlier).
  • Content-Type = Set it to application/json.
  • Accept = Set it to application/json.

Your screen should look like the following:

Now switch over toBody, thenRaw and post the following JSON (from some of my recent tweets):

{"documents":[{"language":"en","id":"1","text":"Top 10 .NET Development Tweets that Broke the Web in 2017 - http://mcrump.me/2ot58Co  #dotnet"},{"language":"en","id":"2","text":"Setting up a managed container cluster with AKS and Kubernetes in the #Azure Cloud running .NET Core in minutes - http://mcrump.me/2op9mek  #dotnet"}]}
Enter fullscreen modeExit fullscreen mode

Now pressSend and it will return key phrases from my tweets.

{"documents":[{"keyPhrases":["Web",".NET Development Tweets","dotnet"],"id":"1"},{"keyPhrases":["Kubernetes","Azure Cloud","minutes -","AKS",".NET Core"],"id":"2"}],"errors":[]}
Enter fullscreen modeExit fullscreen mode

Want more Cognitive Services? Check out ourquickstarts and tutorials!


We'll be posting articles every day in April, so stay tuned or jump ahead and check out more tips and tricksnow.

Top comments(1)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss
CollapseExpand
 
shaijut profile image
Shaiju T
I am a Full stack .NET Developer, I like to work with C#, .Net Core, SQL, Mongo DB, Azure, JavaScript , Angular...Always eager to learn new technologies. I am here to share, ask & eventually learn.
  • Location
    India
  • Education
    MSC SE
  • Work
    Software Engineer
  • Joined

Hi,

I have a doubt whether Its worth for .NET developers to learn kubernetes. Can you explain by adding some comment on below post. I have posted it long ago but no answers.

dev.to/shaijut/kubernetes-vs-azure...

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Invent with purpose

Any language. Any platform.

More fromMicrosoft Azure

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp