Exercise

Creating a Doc

Let's create some Doc objects from scratch! The nlp object has already been created for you.

By the way, if you haven't downloaded it already, check out the spaCy Cheat Sheet. It includes an overview of the most important concepts and methods and might come in handy if you ever need a quick refresher!

Instructions 1/3

undefined XP
  • 1
    • Import the Doc from spacy.tokens.
    • Create a Doc from the words and spaces. Don't forget to pass in the vocab!
  • 2
    • Import the Doc from spacy.tokens.
    • Create a Doc from the words and spaces. Don't forget to pass in the vocab!
  • 3
    • Import the Doc from spacy.tokens.
    • Complete the words and spaces to match the desired text and create a doc.