Spaces:
Sleeping
Sleeping
| 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) | |