Skip to content

Best way to set an entirely custom stop words set #10942

Discussion options

You must be logged in to vote

Defaults is a class, so if you modify the class after your pipeline has been created it doesn't matter, because there's already an instance with the old data. You need to modify the defaults before you create the pipeline, like this.

import spacy
from spacy.lang.fr import FrenchDefaults

FrenchDefaults.stop_words = something
nlp = spacy.blank("fr")

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by probavee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
usage General spaCy usage
2 participants