How to see top n entries of term-document matrix after tfidf in scikit-learn
How to see top n entries of term-document matrix after tfidf in scikit-learn Question: I am new to scikit-learn, and I was using TfidfVectorizer to find the tfidf values of terms in a set of documents. I used the following code to obtain the same. vectorizer = TfidfVectorizer(stop_words=u’english’,ngram_range=(1,5),lowercase=True) X = vectorizer.fit_transform(lectures) Now If I print …
Total answers: 1