python - Use sklearn to find tfidf features of large text?
大家讲道理
大家讲道理 2017-06-28 09:23:35
0
1
831


The above data is obtained from 7303 training sets from the reuters data set, and sklearn is used to extract the tfidf features. The results obtained are all 0. What's going on?

When I take part of this data, I can get the correct tfidf results for these small parts of the data.

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(1)
扔个三星炸死你

The above code may be caused by your accuracy being too low or min_count

For example, if the word frequency is 1 and the total number of words is 1e9, the corresponding tf is 1e-9, which is ignored.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template