Closed abieler closed 7 years ago
Thanks. Will it be possible to write a test for this case, to ensure it does not break in the future?
yes. will do.
added test. weirdly enough (or not?) isnan() does not seem to work for sparse matrices? So the error only gets caught in the dense matrix case.
Thanks. Test failure on nightly is due to the SSL error. Merging.
fixes corner case for
tf_idf()
calculation when document contains 0 words.This (=zero words in doc) happens to me quite frequently when processing scanned pdf files and something goes wrong with the scan quality.