From 4586025124eb99e998c475aedbd7f6da437e130a Mon Sep 17 00:00:00 2001 From: hamishfagg Date: Fri, 5 Apr 2024 10:02:43 +1300 Subject: [PATCH] suppress nltk output when downloading punkt --- type_infer/rule_based/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/type_infer/rule_based/helpers.py b/type_infer/rule_based/helpers.py index 0ef5ccd..fa06fe5 100644 --- a/type_infer/rule_based/helpers.py +++ b/type_infer/rule_based/helpers.py @@ -15,7 +15,7 @@ try: nltk.data.find('tokenizers/punkt') except LookupError: - nltk.download('punkt') + nltk.download('punkt', quiet=True) try: from nltk.corpus import stopwords