Exercise

Docs, spans and entities from scratch

In this exercise, you'll create the Doc and Span objects manually, and update the named entities – just like spaCy does behind the scenes. A shared nlp object has already been created.

Instructions 1/3

undefined XP
    1
    2
    3
  • Import the Doc and Span classes from spacy.tokens.
  • Use the Doc class directly to create a doc from the words and spaces.