From 5a6a48c41cd3de6a05efeb7944b753f1ae568d79 Mon Sep 17 00:00:00 2001 From: Untone Date: Sun, 29 Sep 2024 10:08:25 +0300 Subject: [PATCH] nosegm4 --- nlp/stopwords_detector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nlp/stopwords_detector.py b/nlp/stopwords_detector.py index 8527c42..f426884 100644 --- a/nlp/stopwords_detector.py +++ b/nlp/stopwords_detector.py @@ -5,7 +5,7 @@ with open('nlp/stop_words.txt', 'r', encoding='utf-8') as file: # Convert stopwords to a set for faster lookup stopword_set = set(stopwords) -def check_stopwords(text, stopwords): +def check_stopwords(text): """ Check if any words from the stopwords list are present in the given text.