nosegm4
This commit is contained in:
parent
881b27080b
commit
5a6a48c41c
|
@ -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.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user