chompk's picture
Update README.md
3bf2161 verified
metadata
license: apache-2.0
language:
  - th
  - en
tags:
  - meme
pretty_name: token_awareness
size_categories:
  - 1K<n<10K

Token Awareness Dataset

Built from "strawberry" meme πŸ“, most LLM can't count the character of the word. Since this dataset is very easy to generate, we create a dataset for this benchmark just for fun.

For this dataset, we support only Thai (th) and English (en) language.

Dataset Creation

We sample words for each language from these sources:

We then sample 500 word each weigted by the word score, which was computed using this simple heuristic: S(w)=∣w∣1∣wβˆ£βˆ‘i=1∣wβˆ£βˆ’1freq(ui)+βˆ‘j=1∣wβˆ£βˆ’2freq(bj) S(w) = \frac{\sqrt{|w|}}{\frac{1}{|w|} \sum_{i=1}^{|w|-1} \text{freq}(u_i) + \sum_{j=1}^{|w|-2} \text{freq}(b_j)}

where:

  • $|w|$ is the length of the word.
  • $u_i$ represents the unigram (single character) in the word.
  • $b_j$ represents the bigram (pair of consecutive characters) in the word.
  • $\text{freq}(u_i)$ is the frequency of unigram $u_i$ in the overall corpus.
  • $\text{freq}(b_j)$ is the frequency of bigram $b_j$ in the overall corpus.

we use a random seed of 42.

Author

Chompakorn Chaksangchaichot