import spacy
# from terminal
python -m spacy download en_core_web_lg # or some other model
nlp = spacy.load("en_core_web_lg")
stop_words = nlp.Defaults.stop_words
import spacy
nlp = spacy.load("en")
# To add a single stopword:
nlp.Defaults.stop_words.add("my_new_stopword")
# To remove a single stopword:
nlp.Defaults.stop_words.remove("whatever")
# To see the current set of stopwords, use:
print(nlp.Defaults.stop_words)