Viraj0112's picture
Upload folder using huggingface_hub
03a907a verified
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)