Finding Tf-Idf Scores of only selected words from set of documents using scikit-learn

Viewed 1099

I have a set of documents (stored as .txt files). I Also have a python dictionary of some selected words. I want to assign tf-idf scores only to these words, and not all words, from the set of documents. How can this be done using scikit-learn or any other library ?

I have referred to this blog post but it gives scores of full vocabulary.

1 Answers
Related