Semantics
- Denotational Semantics: The concept of representing an idea as a symbol (a word or a one-hot vector).
- sparse
- cannot capture similarity
- a “localist” representation
Distributional Semantics: The concept of representing the meaning of a word based on the context in which it usually appears.
- A word’s meaning is given by the words that frequently appear close-by
- context: when a word appears in a text, its context is the set of words that appear nearby (within a fixed-size window)
- dense
- can better capture similarity
One-hot Vector
Represent every word as an vector with all 0s and one 1 at the index of that word in the sorted english language.
:the size of our vocabulary
- denotational semantics
- examples: