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.
Challenge: Cognitive Services API - Java Tutorial
From the course: Calling REST APIs with Java
Challenge: Cognitive Services API
(upbeat music playing) - [Instructor] Now that we've seen the Java 11 HTTP Client and a few cognitive services inaction. Let's try a programming challenge. In this challenge, you're going to make an API call to the sentiment service within the text analytics API. After the API returns a response you'll work to parse out the sentiment data in order to create a sentiment analysis object. Let's take a closer look. Inside of your working files, you'll find the Azure sentiment service where you'll do most of your work, Inside of this class, there's a single method named requests sentiment analysis. It accepts two parameters of type string. The first is the text parameter which contains the text we'd like to send to Azure cognitive services for sentiment analysis. The second is the language parameter which will have the language code. If you're using English, this will be EN. Now within the body of this method you're…
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
-
-
-
-