Text Analytics

The Text Analytics API can be used to detect sentiment, key phrases, entities, and language from your text. The following is an example that sends an input text to the API and gets the following output in JSON format. The text was as follows: I am excited about using AI offerings by Microsoft:

{ "languageDetection": { "documents": [ { "id": "fe2529ff-073e-4355-86fa-b927d1b62a23", "detectedLanguages": [ { "name": "English", "iso6391Name": "en", "score": 1.0 } ] } ], "errors": [] }, "keyPhrases": { "documents": [ { "id": "fe2529ff-073e-4355-86fa-b927d1b62a23", "keyPhrases": [ "Microsoft's offerings", "AI space" ] } ], "errors": [] }, "sentiment": { "documents": [ { "id": "fe2529ff-073e-4355-86fa-b927d1b62a23", "score": 0.93527746200561523 ...

Get Hands-On Machine Learning with Azure now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.