Generative Certification notebook error
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2024 04:19 PM
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'
Labels:
- Labels:
-
Generative AI
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2024 04:49 AM
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')