Quiz: Core Operations with spaCy
Let's test what you've learned in this chapter.
Technical Quiz
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.”
1 / 5