Skip to content
DeepForgeby svx
All problems
EasyNLPnlp-322

Whitespace Tokenizer Lowercased

Problem

A common normalization pipeline lowercases text and splits on whitespace.

Given text, return the list of lowercased whitespace tokens.

Hint

Split first, then lower each token.

Test cases

case 1
in: ["Hello World"]
expected: ["hello","world"]
case 2
in: ["A B C"]
expected: ["a","b","c"]
case 3
in: [""]
expected: []
Starter codePython
def whitespace_tokenizer_lowercased(text):
    # Your code here
    pass

3 test cases · run your code against them in the editor