0

Is there now a library/function for Python to compare word phrases and return degree of likeness and/or degree of how information in 1st phrase is fully present in 2nd phrase?

E.g. "Mr John Leron" compare to "Jonh Ler. Jr. teacher"?

I expect it could be some 'vector' function used in big data analysis.

Community
  • 1
  • 1
Alexei Martianov
  • 2,839
  • 7
  • 28
  • 62

1 Answers1

1

I recommand the cosine-similariy algorithm. The reference url is below.

How to calculate cosine similarity given 2 sentence strings? - Python

Community
  • 1
  • 1
spritecodej
  • 419
  • 1
  • 4
  • 13