Quiz: Working with Word Vectors and Semantic Similarity
Let's test what you've learned so far.
1
What will be the output of the following code?
import spacy
nlp = spacy.load("en_core_web_md")
doc = nlp("Humpty Dumpty sat on a wall")
print(list(doc.noun_chunks))
A)
[wall]
B)
[‘Humpty Dumpty’, ‘wall’]
C)
[Humpty Dumpty, wall]
D)
[Humpty Dumpty, a wall]
Question 1 of 60 attempted
Get hands-on with 1400+ tech skills courses.