Don't set stop word in example (closes #2657) [ci skip]

This commit is contained in:
Ines Montani 2018-09-12 15:36:51 +02:00
parent 4e89cfaae1
commit 5001d31be6

View File

@ -352,7 +352,6 @@ p
span.merge() # merge span.merge() # merge
for token in span: for token in span:
token._.bad_html = True # mark token as bad HTML token._.bad_html = True # mark token as bad HTML
doc.vocab[token.text].is_stop = True # mark lexeme as stop word
return doc return doc
nlp = spacy.load('en_core_web_sm') nlp = spacy.load('en_core_web_sm')