implementing baseline TF-IDF model