Spaces:
Sleeping
Sleeping
File size: 257 Bytes
03a907a | 1 2 3 4 5 6 7 8 9 | from dataset.problem_6.helpers import tokenize
def count_unique_words(text: str) -> int:
"""Count unique words ignoring punctuation and case."""
# BUG: counts total words, not unique words.
words = tokenize(text)
return len(words)
|