Learn how to convert text into numbers using Bag of Words and TF-IDF. Understand document frequencies and how to weight important terms for machine learning.