Natural Language Processing with spaCy
- 36Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
36 questions
- 1Natural Language Processing is the process by which we try to get a computer system to understand, parse, and extract human language, often from_____.
Hint
Think about the typical form of data that humans generate in language.
Answer
raw text
- 2The area of NLP that involves identifying people, organizations, and locations in text is called_____.
Hint
This task focuses on finding proper nouns and classifying them.
Answer
named entity recognition
- 3Part-of-speech tagging, syntactic parsing, text categorization, coreference resolution, and machine translation are all areas of_____.
Hint
These are subfields of computational linguistics that deal with processing human language.
Answer
NLP
- 4Natural Language Understanding (NLU) is a field adjacent to NLP that focuses on tasks like relation extraction, semantic parsing, question answering, summarization, sentiment analysis, and_____.
Hint
This task involves rephrasing a sentence while preserving meaning.
Answer
paraphrasing
- 5Information extraction is the process by which we get a computer system to extract relevant information from unstructured data and produce_____.
Hint
Think of the opposite of unstructured data, like a database or metadata.
Answer
structured data
- 6Spam detection is an example of_____.
Hint
This task assigns a label (e.g., spam or not spam) to a text.
Answer
text categorization
- 7The process of reading in data and classifying it into categories is known as_____.
Hint
Also called text classification, this is a common NLP task.
Answer
text categorization
- 8spaCy is a framework for doing NLP, and as of 2021 it is primarily available in_____.
Hint
This is a popular programming language for data science and machine learning.
Answer
Python
- 9spaCy was designed by_____.
Hint
The company behind spaCy focuses on AI at scale.
Answer
explosion AI
- 10One reason spaCy is preferred over other frameworks is that it provides off-the-shelf models that benchmark very well in terms of speed and accuracy metrics such as precision, recall, and_____.
Hint
This metric is the harmonic mean of precision and recall.
Answer
F-score
- 11spaCy can leverage current natural language processing methods, specifically_____models.
Hint
These models, like BERT, have revolutionized NLP in recent years.
Answer
transformer
- 12spaCy provides the framework for doing_____relatively easily compared to other NLP frameworks.
Hint
This allows you to adapt models to your own specific tasks.
Answer
custom training
- 13spaCy scales well because it can process hundreds of thousands of documents with relative ease, especially when using_____.
Hint
These are deterministic components that do not require machine learning.
Answer
rules-based pipes
- 14To install spaCy using pip, you run the command_____.
Hint
This is the standard pip command to install a package.
Answer
pip install spacy
- 15To download the English small model for spaCy, you use the terminal command python -m spacy download_____.
Hint
The model name indicates English, core, web, and small size.
Answer
en_core_web_sm
- 16After installing spaCy, you import it with the statement_____.
Hint
This is how you bring the library into your Python script.
Answer
import spacy
- 17To create an NLP object for the English model, you use the command nlp =_____.
Hint
This function loads a trained pipeline from disk.
Answer
spacy.load("en_core_web_sm")
- 18The instructor recommends selecting_____instead of GPU for installation to avoid additional complexity like CUDA.
Hint
Most computers have this by default; it requires no extra setup.
Answer
CPU
- 19To verify that the model was downloaded correctly, you can create an NLP object and then create a_____object by passing text to it.
Hint
This object is the central container in spaCy that holds all annotations.
Answer
doc
- 20Containers in spaCy are objects that contain a large quantity of_____about a text.
Hint
They hold annotations like tokens, entities, and sentences.
Answer
data
- 21The three main containers in spaCy that are used repeatedly are the doc, span, and_____.
Hint
This is the smallest unit in a text, often a word or punctuation.
Answer
token
- 22The_____object is the central container around which all of spaCy sits.
Hint
It is created by processing a text with the nlp pipeline.
Answer
doc
- 23To access the sentences within a doc object, you iterate over doc._____.
Hint
This attribute is a generator that yields Span objects for each sentence.
Answer
sents
- 24A_____is a word or punctuation mark within a sentence that has a self-contained important value, either syntactically or semantically.
Hint
These are the individual pieces that make up a sentence after tokenization.
Answer
token
- 25A_____is a sequence of one or more tokens that forms a meaningful unit.
Hint
It can be a single token or multiple tokens, such as a named entity.
Answer
span
- 26An example of a multi-token span is the name_____.
Hint
This is a proper name consisting of three tokens.
Answer
Martin Luther King
- 27The doc object is created by calling the nlp object on a_____of text.
Hint
This is the Python data type for text.
Answer
string
- 28The course is divided into three parts, with part one covering_____.
Hint
These are pre-trained models that come with spaCy.
Answer
off-the-shelf models
- 29In part two of the course, you will learn how to use rules-based pipes like the entity ruler, matcher, and custom components that don't exist in_____.
Hint
These are components you create yourself to handle domain-specific problems.
Answer
off-the-shelf models
- 30Part three of the course applies spaCy to information extraction from_____.
Hint
This domain includes stocks, markets, indexes, and stock exchanges.
Answer
financial documents
- 31The instructor recommends a three-pass approach: first watch the entire video, then code along, and finally try to do it on your own without_____.
Hint
This involves relying only on memory and understanding.
Answer
looking at the textbook or the video
- 32The companion textbook for the course is located at_____.
Hint
This website provides additional written material that complements the video.
Answer
spacy.pythonhumanities.com
- 33NLP is used in industries such as finance, law, and_____.
Hint
Researchers use NLP for information extraction from texts.
Answer
academia
- 34In the legal industry, NLP is used to classify documents and extract keywords to reduce millions of documents to a_____that lawyers read verbatim.
Hint
The goal is to drastically reduce the number of documents needed for close reading.
Answer
handful
- 35A financial analyst might use NLP to extract company names, stocks, and indexes from news articles, which is an example of_____.
Hint
This task structures unstructured data into useful metadata.
Answer
information extraction
- 36Spam detection is a real-world application of_____that has been nearly perfect for decades.
Hint
It assigns a label ('spam' or 'not spam') to emails.
Answer
text categorization

Ask anything
We've read this whole study set, so questions about it get the best answers.