Skip to content
ml-recall

#word-boundary

1 question from NLP Fundamentals

Timed test

1 question · 1 min · score and explanations at the end

Take a test
Q 1 / 1Score 0 / 0

Question 1: Short answer

mediumAI-checkedNLP Fundamentals

Python's re.findall returns all non-overlapping matches of a pattern. For

s = "Then the other one is there, the end. The rest?"

re.findall(r"[tT]he", s) returns matches, and re.findall(r"\b[tT]he\b", s) returns matches.

Fill in every blank (hints in the boxes). Enter moves to the next blank.