Understanding TF-IDF in NLP: A Comprehensive Guide