Session Ready
Exercise

Predicting linguistic annotations

You'll now get to try one of spaCy's pre-trained model packages and see its predictions in action. Feel free to try it out on your own text! The small English model is already available as the variable nlp.

To find out what a tag or label means, you can call spacy.explain in the IPython shell. For example: spacy.explain('PROPN') or spacy.explain('GPE').

Instructions 1/2
undefined XP
  • 1
  • 2
  • Process the text with the nlp object and create a doc.
  • For each token, print the token text, the token's .pos_ (part-of-speech tag) and the token's .dep_ (dependency label).