BESSER-Bot-Framework icon indicating copy to clipboard operation
BESSER-Bot-Framework copied to clipboard

Installation package doesn't automatically download punkt_tab from NLTK

Open ivan-alfonso opened this issue 10 months ago • 0 comments

The installation package does not automatically download the required NLTK punkt_tab.

I got this error running the Greeting agent:

**********************************************************************
  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/

The expected behavior is that the installation BAF package should execute:

import nltk
nltk.download('punkt_tab')

However, I have to manually run these lines before creating any agents. I tested with both Python 3.11 and Python 3.12

ivan-alfonso avatar Mar 04 '25 19:03 ivan-alfonso