I want to visualize "Words/grams" used in columns of TfidfVectorizer outut in python-scikit library . Is there a way ?

I tried to to convert csr to array , but cannot see header composed of grams.

有帮助吗?

解决方案

Use get_feature_names method as specified in comments by larsmans

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top