Classifying Content with the Natural Language API

45 minutes
  • 4 Learning Objectives

About this Hands-on Lab

The world is awash in content, especially written content. Google Cloud’s Natural Language API includes the ability to classify content to help manage the never-ending input of information. In this hands-on lab, you’ll use the Natural Language API to index a selection of emails and classify them into various categories.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Enable the API

Enable the Natural Language API.

Authenticate the Service Account

Use the generated JSON file to authenticate the already created service account.

Index the Example Files

Use the provided Python application to index the example files.

Query the Index

Query the results supplied in the index via the provide Python app.

Additional Resources

You’re working in the IT department of a major metropolitan hospital and have been assigned the job of helping to manage the high volume of email requests by routing the emails to the proper medical department. You decide to test the viability of a system using the Natural Language API to index and then query a number of example emails.

Files for this lab can be found on the lab’s GitHub repository.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?