Topic 1 Question 254
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?
Install the NLTK library from a terminal by using the pip install nltk command.
Write a custom Dataflow job that uses NLTK to tokenize your text and saves the output to Cloud Storage.
Create a new Vertex AI Workbench notebook with a custom image that includes the NLTK library.
Install the NLTK library from a Jupyter cell by using the !pip install nltk --user command.
ユーザの投票
コメント(1)
- 正解だと思う選択肢: D
Direct Installation: It installs the library directly within the notebook environment, making it immediately available for use. Simplicity: It requires a single command in a Jupyter cell, eliminating the need for external tools or configuration. User-Specific Installation: The --user flag ensures the library is installed in your user space, avoiding conflicts with system-wide packages.
👍 1pikachu0072024/01/13
シャッフルモード