The News classifier service assigns each input document a category, based on the 17 top-level categories of IPTC Subject Reference System. Additionally the service provides a the two more category candidates which were ranked 2nd and 3rd.
(see also IPTC diagram)
The details on the REST API for the News Classifier service are available on the Text Analytics page.
Lets go step-by-step through the sample code above:
The result is a JSON object providing document classification information as well as ranked list of top 3 category candidates.
Skip to end of metadata Go to start of metadata