Learn Before
Short Answer

Distinguishing Words from Tokens

Consider the sentence: The cat's toy isn't here. First, count the number of words in the sentence. Then, determine how many tokens would be generated if a tokenizer follows these two rules:

  1. It separates punctuation from words (e.g., here. becomes here and .).
  2. It splits common contractions and possessives (e.g., cat's becomes cat and 's; isn't becomes is and n't).

Finally, explain why the word count and the token count are different.

0

1

Updated 2025-10-03

Contributors are:

Who are from:

Tags

Ch.1 Pre-training - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences

Application in Bloom's Taxonomy

Cognitive Psychology

Psychology

Social Science

Empirical Science

Science