ease/document extra dependency

This commit is contained in:
mr-tz
2024-10-14 05:53:03 +00:00
committed by Willi Ballenthin
parent 4a775bab2e
commit e0784f2e85
2 changed files with 3 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
# temporary extra file to track dependencies of the analysis directory
nltk==3.9.1

View File

@@ -133,6 +133,7 @@ def prune_databases(dbs: list[LibraryStringDatabase], n=8):
try:
from nltk.corpus import words as nltk_words
nltk_words.words()
except ImportError:
# one-time download of dataset.
# this probably doesn't work well for embedded use.