- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud

Analyzing Text with Text Analytics on Azure
In this hands-on lab, you’ll use a pre-provided command line application to utilize Azure AI Language to analyze text for positivity, key phrases, and entities.

Lab Info
Table of Contents
-
Challenge
Look at the example reviews below and sign into the Azure portal
For instructions, look at the Guide or the videos!
Review #1
I was at this restaurant in Chicago on March 12th, all I have to say is WOW! Such fantastic food, there is a 99% chance I'll be back again!Review #2
I ate here on May 17th, and it was rough. The food came out cold, the waiter was a bit of a jerk, and I just didn't like it. I won't be coming back here again.
Make some guesses about what the sentiment score might be, along with what key phrases or entities might come back.
Login to the Azure portal using the credentials provided on the lab page
-
Challenge
Open the cloud shell
If you are unfamiliar with the cloud shell, it is the first icon to the right of the search bar. It looks like a command prompt icon.
-
Challenge
Prepare the application
- Clone the GitHub repository that contains the text analytics application.
- Install application requirements.
(For the specific instructions and commands, see the Guide!)
-
Challenge
Modify the pre-provided command line application
- Put the key into the Python code.
- Copy in the Azure AI endpoint into the Python code as well.
(See the Guide or video for the specific instructions and code!)
-
Challenge
Run the application and analyze the reviews
Run the application by using the following command:
Review results of the text analysis
About the author
Real skill practice before real-world application
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.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.