Quiz: Core Operations with spaCy
Let's test what you've learned in this chapter.
1
What will be the output of the following code?
import spacy
nlp = spacy.load("en_core_web_md")
doc = nlp("Hello, World! My name is John and I live in New York City.")
for token in doc:
print(token)
A)
“Hello”, “,”, “World”, “!”, “My”, “name”, “is”, “John”, “and”, “I”, “live”, “in”, “New”, “York”, “City”, “.”
B)
“Hello,”, “World!”, “My”, “name”, “is”, “John”, “and”, “I”, “live”, “in”, “New”, “York”, “City.”
C)
“Hello,”, “World!”, “My name is John and I live in New York City.”
D)
“Hello, World! My name is John and I live in New York City.”
Question 1 of 50 attempted
Get hands-on with 1400+ tech skills courses.