Jump into concepts and practice - no test required
or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Recall & Review
beginner
What is Extractive Question Answering (QA)?
Extractive QA is a type of question answering where the answer is found by selecting a span of text directly from a given passage or document.
Click to reveal answer
beginner
How does Extractive QA differ from Generative QA?
Extractive QA picks answers directly from the text, while Generative QA creates answers in its own words, possibly not found exactly in the text.
Click to reveal answer
beginner
What is the typical input for an Extractive QA model?
The input usually includes a question and a context passage where the answer is expected to be found.
Click to reveal answer
intermediate
Which machine learning models are commonly used for Extractive QA?
Models like BERT and its variants are commonly used because they understand context well and can find answer spans in text.
Click to reveal answer
intermediate
What are start and end tokens in Extractive QA?
They are positions in the text that mark where the answer begins and ends, helping the model select the exact answer span.
Click to reveal answer
In Extractive QA, where does the answer come from?
AFrom user input
BGenerated from scratch by the model
CDirectly from the given text passage
DFrom a database lookup
✗ Incorrect
Extractive QA selects the answer span directly from the provided text passage.
What does an Extractive QA model predict to find the answer?
AA generated sentence unrelated to the passage
BA summary of the passage
CA yes or no answer
DStart and end positions of the answer in the text
✗ Incorrect
The model predicts the start and end tokens to extract the answer span.
Which of these is a popular model architecture for Extractive QA?
AK-Means
BBERT
CGAN
DRNN without attention
✗ Incorrect
BERT is widely used for Extractive QA due to its strong contextual understanding.
What is the main difference between Extractive and Generative QA?
AExtractive selects text from passage; Generative creates new text
BExtractive creates new text; Generative selects from passage
CBoth generate new text
DBoth select text from passage
✗ Incorrect
Extractive QA picks answers from the passage, Generative QA creates answers.
What inputs does an Extractive QA system need?
AA question and a context passage
BOnly a question
COnly a passage
DA question and an answer
✗ Incorrect
Extractive QA requires both a question and a passage to find the answer.
Explain how an Extractive QA model finds an answer in a text passage.
Think about how the model points to the exact words in the text.
You got /3 concepts.
Describe the difference between Extractive and Generative QA in simple terms.
Consider whether the answer is copied or made up.
You got /3 concepts.
Practice
(1/5)
1. What is the main goal of extractive question answering (QA)?
easy
A. To translate the question into another language
B. To generate a new answer not present in the text
C. To summarize the entire text into a short paragraph
D. To find the exact answer span within a given text
Solution
Step 1: Understand extractive QA purpose
Extractive QA aims to locate the exact part of the text that answers the question.
Step 2: Compare options with definition
Only To find the exact answer span within a given text describes finding the exact answer span inside the text, which matches extractive QA.
Final Answer:
To find the exact answer span within a given text -> Option D
Quick Check:
Extractive QA = find exact answer span [OK]
Hint: Extractive QA picks text parts, not creates new answers [OK]
Common Mistakes:
Confusing extractive QA with generative QA
Thinking extractive QA summarizes text
Assuming extractive QA translates questions
2. Which of the following is the correct way to represent an extractive QA model's output?
easy
A. Span of text indices indicating the answer start and end
B. Single integer representing the answer length
C. List of unrelated keywords from the text
D. Boolean value indicating if the answer exists
Solution
Step 1: Recall extractive QA output format
Extractive QA models output the start and end positions of the answer span in the text.
Step 2: Match options to output format
Only Span of text indices indicating the answer start and end correctly describes output as text span indices.
Final Answer:
Span of text indices indicating the answer start and end -> Option A
Quick Check:
Output = start and end indices [OK]
Hint: Extractive QA outputs answer span positions, not just length [OK]
Common Mistakes:
Choosing answer length instead of span indices
Confusing keywords with answer span
Thinking output is just true/false
3. Given the context: 'The Eiffel Tower is located in Paris.' and the question: 'Where is the Eiffel Tower?', what would an extractive QA model most likely output?
medium
A. "Eiffel Tower"
B. "located"
C. "Paris"
D. "The Eiffel Tower is located"
Solution
Step 1: Understand question and context
The question asks for the location of the Eiffel Tower, which is stated as "Paris" in the context.
Step 2: Identify exact answer span
The extractive QA model selects the exact text span answering the question, which is "Paris".
Final Answer:
"Paris" -> Option C
Quick Check:
Answer = "Paris" [OK]
Hint: Extractive QA picks exact answer phrase from context [OK]
Common Mistakes:
Selecting part of the question as answer
Choosing unrelated words from context
Picking longer phrases than needed
4. Consider this extractive QA model output code snippet: