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 - Java Tutorial
From the course: Calling REST APIs with Java
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
Azure Cognitive Services5m 40s
-
(Locked)
Text Analytics API registration and security7m 34s
-
(Locked)
Java HTTP Client9m 29s
-
(Locked)
Calling Azure Cognitive Services APIs7m 9s
-
(Locked)
Asynchronous API calls6m 50s
-
(Locked)
Challenge: Cognitive Services API3m 25s
-
(Locked)
Solution: Cognitive Services API4m 54s
-
-
-
-