You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import spacy
de_nlp = spacy.load('de')
for stopword in my_stop_words:
lexeme = nlp.vocab[stopword]
lexeme.is_stop = True
The attribute will be inherited by all tokens, because all tokens of a given type receive a reference to that type. So when you write to the lexical type via the vocab, all tokens will see the updated attribute.
Activity
honnibal commentedon May 5, 2016
Good point! Forgot about these.
In the meantime you can set your own as follows:
The attribute will be inherited by all tokens, because all tokens of a given type receive a reference to that type. So when you write to the lexical type via the vocab, all tokens will see the updated attribute.
bobbyrenwick commentedon May 6, 2016
Thanks for the workaround!
ines commentedon Nov 24, 2016
Fixed!
lock commentedon May 9, 2018
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.