Deciphering tasks in a SpaCy code snippet

Report a typo

Hey there! This problem might be a bit unpredictable, but give it a go and let us know how you do!

Consider the following code snippet involving the SpaCy library. What tasks does this code perform in the context of natural language processing?

import spacy

nlp = spacy.load('en_core_web_sm')
doc = nlp(u'The quick brown fox jumps over the lazy dog.')

for token in doc:
    print(token.text, token.lemma_, token.pos_, token.tag_, token.dep_,
          token.shape_, token.is_alpha, token.is_stop)
Select one option from the list

Create a free account to access the full topic