Tokens and Types

  • = number of tokens (running words)
  • = vocabulary = set of types (distinct words); = size of the vocabulary (02 Pre-processing s.23)
CorpusTokens = NTypes = |V|
Switchboard phone conversations2.4 million20 thousand
Shakespeare884,00031 thousand
Google N-grams1 trillion13 million

Normalization (Concept - Stemming, Concept - Lemmatization) reduces the number of types and raises the frequency of the remaining ones (s.28, s.30).

Concept - Zipf’s Law | Concept - Corpus | Concept - Text Normalization

Appears in