🔤Bag of Words
Also known as BoW, Bag-of-Words Model
Text turned into word counts. The word order is thrown away.
Think of it like
Think of it like you tip all the words on a page into a bag. Then you count them.
Example
Emma's spam filter counts words in each email. An email with 'free' 3 times and 'winner' 2 times gets a high spam score.
Why it matters
It was the first common way to turn text into numbers. It is still a quick test to beat.
Definition
Common mistake
Key takeaways
- 1Counts each word. One slot per word.
- 2Order is lost. Only the counts stay.
- 3Simple and fast. A good first try.