Chapter 14: IBM Watson and Cognitive Computing 5
a. You train the Natural Language Classifier service with sentences and phrases that
are specific to your application and classify each sentence or phrase. For example,
you might classify “I need help with your product” as “tech support” and “My bill is
incorrect” as “billing.”
b. Once you’ve trained your classifier, the service can receive sentences and
phrases, then use Watson’s cognitive computing capabilities and your classifier to
return the best matching classifications and their match probabilities.
c. You might use the returned classifications and probabilities to determine the next
steps in your app. For example, in a customer service app where someone is calling
in with a question about a particular product, you might use Speech to Text to con-
vert a question into text, use the Natural Language Classifier service to classify the
text, then route the call to the appropriate person or department.
d. All of the above statements are true.
14.3 Q9: Which of the following statements is false?
a. Many APIs are synchronous—when you call a function or method, the program
waits for the function or method to return before moving on to the next task.
b. Synchronous programs can start a task, continue doing other things, then be no-
tified when the original task completes and returns its results.
c. Many Watson services offer both synchronous and asynchronous APIs.
d. The Speech to Text demo is a good example of asynchronous APIs. The demo pro-
cesses sample audio of two people speaking. As the service transcribes the audio, it
returns intermediate transcription results, even if it has not yet been able to distin-
guish among the speakers. The demo displays these intermediate results in parallel
with the service’s continued work. Sometimes the demo displays “Detecting speak-
ers” while the service figures out who is speaking. Eventually, the service sends up-
dated transcription results for distinguishing among the speakers, and the demo
then replaces the prior transcription results.
14.3 Q10: Which of the following statements is false?
a. With today’s multi-core computers and multi-computer clusters, asynchronous
APIs can help you improve program performance.
b. Programming with synchronous APIs is more complicated than programming
with asynchronous APIs.
c. IBM provides Watson Developer Cloud Python SDK code examples on GitHub,
where you can see examples that use synchronous and asynchronous versions of
several services.
d. All of the above statements are true.