hands-on lab

Analyze and Retrieve Information from Text Using Google Cloud Natural Language

Difficulty: Intermediate
Duration: Up to 45 minutes
Students: 588
Rating: 4.3/5
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.

Description

Google Cloud Natural Language is a machine learning service that enables you to analyze and retrieve different kinds of information from text, or from a text document, uploaded to Cloud Storage. By using Google's pre-created machine learning models, you can extract information such as sentiments, entities, content classifications, and syntax. This way, you can carry out text analysis and retrieve all the entities in a piece of text, with related information, or understand the sentiment expressed by a piece of text. By using Google Cloud Natural Language, you will use the same machine learning models that Google uses for its search engine. This ensures the speed and reliability of the retrieved information. If you want more information on Cloud Natural Language, follow this link.

In this lab, you will use Cloud Natural Language to perform entity analysis and sentiment analysis.

Learning Objectives 

Upon completion of this lab you will be able to:

  • Perform text analysis to retrieve entities described in a document
  • Understand sentiments by analyzing a text document

Intended Audience

This lab is intended for:

  • Google Cloud Professional Data Engineer (PDE) candidates
  • Data Engineers who want to build machine learning solutions using Google's pre-defined models
  • Individuals who want to implement text analysis solutions

Prerequisites

This lab has no prerequisites.

Updates

December 4th, 2023 - Updated instructions to clarify results

February 15th, 2023 - Updated the instructions and screenshots to reflect the latest UI

December 20th, 2021 - Removed references to Cloud Shell (Lab commands should be entered into the ca-lab-vm browser terminal)

Environment before

Environment after

Covered topics

Lab steps

Signing In to the Google Cloud Console
Creating the Bucket That Contains the Text to Analyze
Performing Entity Analysis
Performing Sentiment Analysis