From the course: Calling REST APIs with Java

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Calling Azure Cognitive Services APIs

Calling Azure Cognitive Services APIs - Java Tutorial

From the course: Calling REST APIs with Java

Start my 1-month free trial

Calling Azure Cognitive Services APIs

- [Instructor] The text analytics API has a key phrase endpoint that can extract important information from a string of text. Let's get a closer look at the API and make some calls that work a little bit better with JSON. To get started, you'll want to navigate to the Azure key phrase test in the working files. You'll notice this test is very similar to our previous unit test with one key difference. Instead of calling the named entity recognition endpoint, we're now calling the key phrases endpoint so that we can extract those important points in a string of text. Now, if we take a look at the actual test itself it's functional, but it can definitely be improved. You'll notice that we are passing the example, JSON constant and that's just a hard-coded JSON string within our class. Now it's much better to work with objects in Java and if we take a look at the documentation for the text analytics API, we can see for the…

Contents