explosion / spacy-course

👩‍🏫 Advanced NLP with spaCy: A free online course
https://course.spacy.io
MIT License
2.31k stars 368 forks source link

explicitely add string to vocab #98

Closed svlandeg closed 3 years ago

svlandeg commented 3 years ago

To avoid confusion when a string is not yet in the vocab, add it first explicitely.

We've gotten some questions/confusion around this on the spaCy issue tracker, cf https://github.com/explosion/spaCy/issues/7619 and https://github.com/explosion/spaCy/issues/1985#issuecomment-650536370, so it might be good to make this more explicit in the course slides.