Hello there, im trying to run a python script that uses punkt_tab, im using a devshell from a flake but even with the python libs loaded i keep getting the error message.
(python3.withPackages (
p: with p; [
nltk
nltk-data.punkt-tab
]
))
LookupError:
**********************************************************************
Resource punkt_tab not found.
Please use the NLTK Downloader to obtain the resource:
>>> import nltk
>>> nltk.download('punkt_tab')
For more information see: https://www.nltk.org/data.html
Attempted to load tokenizers/punkt_tab/english/
Searched in:
- '~/nltk_data'
- '/nix/store/zs9ngbdyrhykxcvkzgapvyz00ml74jbd-python3-3.13.11-env/nltk_data'
- '/nix/store/zs9ngbdyrhykxcvkzgapvyz00ml74jbd-python3-3.13.11-env/share/nltk_data'
- '/nix/store/zs9ngbdyrhykxcvkzgapvyz00ml74jbd-python3-3.13.11-env/lib/nltk_data'
- '/usr/share/nltk_data'
- '/usr/local/share/nltk_data'
- '/usr/lib/nltk_data'
- '/usr/local/lib/nltk_data'
**********************************************************************