Python-csr_matrix的数据结构 [英] Python - Data structure of csr_matrix

查看:80
本文介绍了Python-csr_matrix的数据结构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究TFIDF.我使用了 tfidf_vectorizer.fit_transform .它返回一个csr_matrix,但是我不明白结果的结构是什么.

I am studying about TFIDF. I have used tfidf_vectorizer.fit_transform. It return a csr_matrix, but I can not understand what structure of the result.

  • 数据输入:

documents =(天空是蓝色",太阳是明亮的", 天空是明亮的",我们可以看到灿烂的阳光,灿烂的阳光")

documents = ( "The sky is blue", "The sun is bright", "The sun in the sky is bright", "We can see the shining sun, the bright sun" )

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆