02 Pre-processing - Cheat Sheet

Up: 02 Pre-processing - Index | 02 Pre-processing - Mind Map

Definitions

Formulas

NameFormula
tf-idf (s.67), (Intro s.26 uses )
Entropy (s.78); max , min 0;
Information gain (s.81); Humidity:
Cosine similarity (s.151, 172); identical 1, disjoint 0, “Hello, World!” vs “Hello!” 0.71
SVD (s.178, 183); docs
Truncated SVD (s.188-192)docs ; new doc ; rank

Weather IG ranking (added context): Outlook 0.247 > Humidity 0.152 > Windy 0.048 > Temperature 0.029.

Key comparisons

AB
Stemming: rules, non-words, fastLemmatization: dictionary (+POS), valid words
Porter: milderLancaster: more aggressive (loving → lov)
Homonymy: unrelated meanings (bank)Polysemy: related meanings (man)
Feature selection: subset of wordsDimensionality reduction: new combined features
Entropy: property of one setIG: drop in entropy after a split
Cosine: angle only, length ignoredEuclidean-style length: not used

Most likely exam questions

  1. Compare stemming and lemmatization with examples (s.31-34).
  2. Difficulties of tokenization and of sentence boundary detection (s.18-21, 37-41).
  3. Explain tf-idf and its intuition, as discussed in class (s.67-68).
  4. Pros and cons of bag of words (s.71): simple, effective, fast / no order, no semantics, high-dimensional and sparse.
  5. Describe feature selection by attribute ranking; compute entropy / information gain (s.74-88).
  6. State the cosine similarity formula and explain its symbols; why length does not matter (s.121, 142-150).
  7. How is dimensionality reduced in LSA; how is a new document mapped (s.185-192)? Why does doc 4 vs doc 5 similarity go from ~0 to 0.75?
  8. How does LSA address synonymy (s.191)?

Style guide: Past Exam - Question Bank & Style Guide.