cancel
Showing results for 
Search instead for 
Did you mean: 
Generative AI
Explore discussions on generative artificial intelligence techniques and applications within the Databricks Community. Share ideas, challenges, and breakthroughs in this cutting-edge field.
cancel
Showing results for 
Search instead for 
Did you mean: 

Generative Certification notebook error

MauricioLins
New Contributor

Hello,

I have been trying to run the GenAI course notebook and this error below. I've already tried to download the averaged_perceptron_tagger_eng as it suggests, but the error keeps coming and I am running out of ideas, does anyone can help please?

Resource averaged_perceptron_tagger_eng not found. Please use the NLTK Downloader to obtain the resource:
>>> import nltk
>>> nltk.download('averaged_perceptron_tagger_eng')
 
For more information see: https://www.nltk.org/data.html
 
Attempted to load taggers/averaged_perceptron_tagger_eng/
 
Searched in:
- '/root/nltk_data'
- '/local_disk0/.ephemeral_nfs/envs/pythonEnv-96ecc48a-bf4c-4c69-9bb8-8a7dbce1a0a7/nltk_data'
- '/local_disk0/.ephemeral_nfs/envs/pythonEnv-96ecc48a-bf4c-4c69-9bb8-8a7dbce1a0a7/share/nltk_data'
- '/local_disk0/.ephemeral_nfs/envs/pythonEnv-96ecc48a-bf4c-4c69-9bb8-8a7dbce1a0a7/lib/nltk_data'
- '/usr/share/nltk_data'
- '/usr/local/share/nltk_data'
- '/usr/lib/nltk_data'
- '/usr/local/lib/nltk_data'
- '/tmp/llama_index'
 
1 REPLY 1

MohammedArif
New Contributor III
Hi,
I too was getting same error while running the notebook on my cluster. Got fixed after running these.
 
import nltk
nltk.download('punkt')
nltk.download('wordnet')
nltk.download('omw-1.4')
nltk.download('punkt_tab')
nltk.download('averaged_perceptron_tagger_eng')

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group