Add/remove custom stop words with spacy

前端 未结 6 2075
悲哀的现实
悲哀的现实 2020-12-07 13:04

What is the best way to add/remove stop words with spacy? I am using token.is_stop function and would like to make some custom changes to the set. I was looking at the docum

6条回答
  •  旧巷少年郎
    2020-12-07 13:18

    This collects the stop words too :)

    spacy_stopwords = spacy.lang.en.stop_words.STOP_WORDS

提交回复
热议问题