-1

Can any one give a particular git repository for text similarity checking code using python. Or Can help in making the program of text similarity checking using python.

Aashis
  • 1
  • That might be a good starting point: https://stackoverflow.com/questions/8897593/how-to-compute-the-similarity-between-two-text-documents – samusa Jun 19 '21 at 10:18

1 Answers1

0

You can use the Levenshtein Distance to calculate the similarity of 2 words. FuzzyWuzzyis a good library that makes use of this algorithm.

Example:

from fuzzywuzzy import fuzz
from fuzzywuzzy import process

fuzz.ratio("Catherine M Gitau", "Catherine Gitau")

Result:

#91

So between those two strings there is a 91% similarity.

You can read more about this topic here:

Lukas Scholz
  • 622
  • 5
  • 11