Classify Text into Categories with the Natural Language API | Qwiklabs

The Cloud Natural Language API lets you extract entities from text, perform sentiment and syntactic analysis, and classify text into categories. In this lab, we'll focus on text classification. Using a database of 700+ categories, this API feature makes it easy to classify a large dataset of text.

What you'll learn

What you'll need

Confirm that the Cloud Natural Language API is enabled

Click the Navigation menu icon in the top left of the screen.

https://cdn.qwiklabs.com/DuEdLz3bS6dSpKkxwiK7pbISMK%2B3inPOStiVq8oKRig%3D

Select APIs & services > Dashboard.

https://cdn.qwiklabs.com/WQJmwscI63oS33XFMAfnfi8KoO8ewLpDH4A8ZsLKufM%3D

Click Enable APIs and services.

https://cdn.qwiklabs.com/Yo%2BXa10XwmyZ1SXn%2FsTup71Oor3HahGd9UnbdYcAdec%3D

Then, search for language in the search box. Click Cloud Natural Language API:

https://cdn.qwiklabs.com/6tMzQwhF9Y5%2FvMFeXnjO0MXBfY53vLg5eEkQQw84N3U%3D

If the API is not enabled, you'll see the Enable button. Click Enable to enable the Cloud Natural Language API:

https://cdn.qwiklabs.com/cmh3NCBZEY%2BHBoHPUPlsn8EnyqiO6WCJNWj4fKsFQkg%3D