Hi All

I have text column in df1 and text column in df2. The length of df2 will be always > length of df1. I want to calculare cosine similarity for every entry in df1[text] against every entry in df2[text] and give a score for every match.

i was facing issues( geeting key errors) when I was trying to match these two columns for similarity . Any help would be greatly appreicated. I have googled a lot and found that in almost all cases people were comparing the first document against rest of documents in the same corpus. here it like comparing every document of corpus 1 with every document on corpus2 .

Thanks

Mahesh

More Mahesh Jadhav's questions See All
Similar questions and discussions