You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it seems the script returns an error as it cannot find punk_tab file from nltk:
Script failed to run:
Error: [Traceback (most recent call last):
File "", line 278, in
File "", line 262, in main
File "", line 131, in predict_phishing_words
File "", line 172, in predict_single_incident_full_output
File "", line 910, in filter_model_words
File "/usr/local/lib/python3.10/site-packages/nltk/tokenize/init.py", line 142, in word_tokenize
sentences = [text] if preserve_line else sent_tokenize(text, language)
File "/usr/local/lib/python3.10/site-packages/nltk/tokenize/init.py", line 119, in sent_tokenize
tokenizer = _get_punkt_tokenizer(language)
File "/usr/local/lib/python3.10/site-packages/nltk/tokenize/init.py", line 105, in _get_punkt_tokenizer
return PunktTokenizer(language)
File "/usr/local/lib/python3.10/site-packages/nltk/tokenize/punkt.py", line 1744, in init
self.load_lang(lang)
File "/usr/local/lib/python3.10/site-packages/nltk/tokenize/punkt.py", line 1749, in load_lang
lang_dir = find(f"tokenizers/punkt_tab/{lang}/")
File "/usr/local/lib/python3.10/site-packages/nltk/data.py", line 579, in find
raise LookupError(resource_not_found)
LookupError:
Resource �[93mpunkt_tab�[0m not found.
Please use the NLTK Downloader to obtain the resource:
�[31m>>> import nltk
nltk.download('punkt_tab')
�[0m
For more information see: https://www.nltk.org/data.html
Attempted to load �[93mtokenizers/punkt_tab/english/�[0m
Hi and welcome to our Content Developer Docs project!
Thanks and congrats for opening your very first issue.
If you know the fix, you may also submit a PR to fix the issue if you like!
Hi @ImanGitCA, this should be opened as a bug through the support portal.
This issue will be closed as it is only served for documentation purposes.
Thanks
Describe the problem
it seems the script returns an error as it cannot find punk_tab file from nltk:
Script failed to run:
Error: [Traceback (most recent call last):
File "", line 278, in
File "", line 262, in main
File "", line 131, in predict_phishing_words
File "", line 172, in predict_single_incident_full_output
File "", line 910, in filter_model_words
File "/usr/local/lib/python3.10/site-packages/nltk/tokenize/init.py", line 142, in word_tokenize
sentences = [text] if preserve_line else sent_tokenize(text, language)
File "/usr/local/lib/python3.10/site-packages/nltk/tokenize/init.py", line 119, in sent_tokenize
tokenizer = _get_punkt_tokenizer(language)
File "/usr/local/lib/python3.10/site-packages/nltk/tokenize/init.py", line 105, in _get_punkt_tokenizer
return PunktTokenizer(language)
File "/usr/local/lib/python3.10/site-packages/nltk/tokenize/punkt.py", line 1744, in init
self.load_lang(lang)
File "/usr/local/lib/python3.10/site-packages/nltk/tokenize/punkt.py", line 1749, in load_lang
lang_dir = find(f"tokenizers/punkt_tab/{lang}/")
File "/usr/local/lib/python3.10/site-packages/nltk/data.py", line 579, in find
raise LookupError(resource_not_found)
LookupError:
Resource �[93mpunkt_tab�[0m not found.
Please use the NLTK Downloader to obtain the resource:
�[31m>>> import nltk
Attempted to load �[93mtokenizers/punkt_tab/english/�[0m
Searched in:
- '/ml/nltk_data'
- '/root/nltk_data'
- '/usr/local/nltk_data'
- '/usr/local/share/nltk_data'
- '/usr/local/lib/nltk_data'
- '/usr/share/nltk_data'
- '/usr/local/share/nltk_data'
- '/usr/lib/nltk_data'
- '/usr/local/lib/nltk_data'
] (2604) (2603) (2609)
Screenshots
Environment
its part of a playbook used in XSOAR.
Suggested fix
The text was updated successfully, but these errors were encountered: