spacy_stopwords = spacy.lang.en.stop_words.STOP_WORDS
spacystopwords=[]
for i in spacy_stopwords:
spacystopwords.append(i)
self.stop_words = spacystopwords
for stopword in self.stop_words:
print("printing the stop words",stopword)
Can I somehow add a stopwords list file in a separate file in the bot’s folder and then refer to it in the config file instead of putting the whole list into the config file?
that’s not a feature we support out of the box, but you could create a custom component to load the list from a file! The easiest way might be to subclass the CountVectorizer