Skip to content
ml-recall

#regular-expressions

4 questions from NLP Fundamentals, Tokenization

Timed test

4 questions · 4 min · score and explanations at the end

Take a test
Q 1 / 4Score 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.