Natural Language Processing · TEE · formulas-chapter
Representation & similarity
Formulas explained through full worked examples
- Label and one-hot encoding: three complete examples
- Bag of words and bag of n-grams
- TF–IDF from the exact slide convention
- Cosine: products, lengths and division
- Jaccard: intersection, union and distance
- Manhattan, Euclidean and Minkowski: three complete comparisons
- Distributional hypothesis and a co-occurrence matrix
- Word2Vec: CBOW and skip-gram from training pairs
- Word analogies and sentence embeddings
- The GloVe objective and numerical interpretation