Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with "DBotPredictOutOfTheBoxV2" in @site/docs/reference/scripts/d-bot-predict-out-of-the-box-v2.md #1656

Closed
ImanGitCA opened this issue Nov 15, 2024 · 5 comments
Assignees

Comments

@ImanGitCA
Copy link

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

nltk.download('punkt_tab')
�[0m
For more information see: https://www.nltk.org/data.html

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

  • OS: [e.g. Windows]
  • Browser: [e.g. chrome, safari, firefox..]
  • Browser Version:
    its part of a playbook used in XSOAR.

Suggested fix

Copy link

welcome bot commented Nov 15, 2024

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!

@ShirleyDenkberg
Copy link
Contributor

ShirleyDenkberg commented Nov 17, 2024

@lperryp I see that you were the last one to work on this. Can you take a look?
Can you reassign it to yourself if it belongs to you?

@ShirleyDenkberg
Copy link
Contributor

@nkanon Can you assign this to the correct content person?

@nkanon
Copy link

nkanon commented Nov 17, 2024

@nkanon Can you assign this to the correct content person?

@jlevypaloalto Is this related to you?
Thanks

@nkanon
Copy link

nkanon commented Nov 18, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants