AiTeky Original Lesson 3 of 10 Learn 30 min ✓ Reviewed by Expert
Bag of words and TF-IDF
Turn text into a table of numbers a model can learn from. Build a bag of words by hand and with CountVectorizer, count word pairs so "not tasty" gets its own column, and use TF-IDF so that words found everywhere count for less.
Sign up free to open every AiTeky Original lesson
It takes a minute with your email. AiTeky Pass (₹999/month or ₹9,999/year) is free for your first 30 days.

