Challenge - 5 Problems
Extractive Summarization Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate1:30remaining
What is the main goal of extractive summarization?
Choose the best description of extractive summarization.
Attempts:
2 left
💡 Hint
Think about whether the summary uses original sentences or new ones.
✗ Incorrect
Extractive summarization picks key sentences from the original text without changing them, unlike abstractive summarization which generates new sentences.
❓ Predict Output
intermediate2:00remaining
Output of sentence scoring in extractive summarization
What is the output of this code that scores sentences by word frequency?
NLP
text = "Machine learning is fun. Learning machines can improve. Fun machines learn fast." words = text.lower().replace('.', '').split() freq = {} for w in words: freq[w] = freq.get(w, 0) + 1 sentences = text.split('. ') scores = {} for s in sentences: score = 0 for word in s.lower().split(): score += freq.get(word, 0) scores[s] = score print(scores)
Attempts:
2 left
💡 Hint
Count how many times each word appears and sum for each sentence.
✗ Incorrect
The code counts word frequencies and sums them per sentence. Words like 'machine' and 'learning' appear multiple times, increasing scores.
❓ Model Choice
advanced1:30remaining
Best model type for extractive summarization on long documents
Which model is best suited for extractive summarization of very long documents?
Attempts:
2 left
💡 Hint
Consider models that handle long text efficiently.
✗ Incorrect
Longformer and BigBird are transformer models designed to process long texts efficiently, making them suitable for extractive summarization of long documents.
❓ Metrics
advanced1:30remaining
Which metric best evaluates extractive summarization quality?
Choose the metric that best measures how well an extractive summary matches a human summary.
Attempts:
2 left
💡 Hint
Think about metrics that compare text overlap.
✗ Incorrect
ROUGE measures overlap of words and phrases between generated and reference summaries, making it suitable for extractive summarization evaluation.
🔧 Debug
expert2:00remaining
Why does this extractive summarization code produce empty summary?
Given the code below, why does the summary list remain empty after execution?
NLP
text = "AI is transforming industries. It helps automate tasks." sentences = text.split('. ') summary = [] for s in sentences: if 'machine' in s.lower(): summary.append(s) print(summary)
Attempts:
2 left
💡 Hint
Check the condition inside the loop and the text content.
✗ Incorrect
The code checks if 'machine' is in each sentence, but the text does not contain 'machine', so no sentences are added to summary.