0

I have to compute pairwise cosine similarity after computing tf-idf matrix but I am getting a memory error! found similar questions but the answers didn't solve my case.

Currently my code is ,

from sklearn.metrics.pairwise import *
cosine_similarity(loinc_tfidf_matrix, loinc_tfidf_matrix)

Promising answer I found is this, But I am not sure of the what is vector in that code?

zero323
  • 322,348
  • 103
  • 959
  • 935
sanjita
  • 1
  • 1

0 Answers0