ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 224 - Professional Machine Learning Engineer discussion

Report
Export

You are working on a prototype of a text classification model in a managed Vertex AI Workbench notebook. You want to quickly experiment with tokenizing text by using a Natural Language Toolkit (NLTK) library. How should you add the library to your Jupyter kernel?

A.
Install the NLTK library from a terminal by using the pip install nltk command.
Answers
A.
Install the NLTK library from a terminal by using the pip install nltk command.
B.
Write a custom Dataflow job that uses NLTK to tokenize your text and saves the output to Cloud Storage.
Answers
B.
Write a custom Dataflow job that uses NLTK to tokenize your text and saves the output to Cloud Storage.
C.
Create a new Vertex Al Workbench notebook with a custom image that includes the NLTK library.
Answers
C.
Create a new Vertex Al Workbench notebook with a custom image that includes the NLTK library.
D.
Install the NLTK library from a Jupyter cell by using the! pip install nltk ---user command.
Answers
D.
Install the NLTK library from a Jupyter cell by using the! pip install nltk ---user command.
Suggested answer: D

Explanation:

NLTK is a Python library that provides a set of tools for natural language processing, such as tokenization, stemming, tagging, parsing, and sentiment analysis. Tokenization is a process of breaking a text into smaller units, such as words or sentences. You can use NLTK to quickly experiment with tokenizing text in a managed Vertex AI Workbench notebook. A Vertex AI Workbench notebook is a web-based interactive environment that allows you to write and execute Python code on Google Cloud. You can install the NLTK library from a Jupyter cell by using the !pip install nltk --user command. This command uses the pip package manager to install the NLTK library for the current user. By installing the NLTK library from a Jupyter cell, you can avoid the hassle of opening a terminal or creating a custom image for your notebook.Reference:

NLTK documentation

Vertex AI Workbench documentation

Preparing for Google Cloud Certification: Machine Learning Engineer Professional Certificate

asked 18/09/2024
Yahya Ozer
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first