This commit is contained in:
Untone 2024-09-29 10:08:25 +03:00
parent 881b27080b
commit 5a6a48c41c

View File

@ -5,7 +5,7 @@ with open('nlp/stop_words.txt', 'r', encoding='utf-8') as file:
# Convert stopwords to a set for faster lookup # Convert stopwords to a set for faster lookup
stopword_set = set(stopwords) 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. Check if any words from the stopwords list are present in the given text.