Bag of Words

Domain: NLP Fundamentals

🎯 Motivation

Represents text as a count of each word, ignoring order. Simple but loses meaning and structure.

📋 Concrete Example

I love AI and AI loves me becomes {I:1, love:1, AI:2, and:1, loves:1, me:1}. Order is gone.

🔗 Analogy

Like tossing all words from a sentence into a bag - you know what words are there but not the order.