this page: http://scikit-learn.org/stable/modules/feature_extraction.html mentions:
As tf–idf is a very often used for text features, there is also another class called TfidfVectorizer that combines all the option of CountVectorizer and TfidfTransformer in a single model.
then I followed the code and use fit_transform() on my corpus. How to get the weight of each feature computed by fit_transform()?
I tried:
In [39]: vectorizer.idf_
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-39-5475eefe04c0> in <module>()
----> 1 vectorizer.idf_
AttributeError: 'TfidfVectorizer' object has no attribute 'idf_'
but this attribute is missing.
Thanks