seatgeek / fuzzywuzzy

Fuzzy String Matching in Python
http://chairnerd.seatgeek.com/fuzzywuzzy-fuzzy-string-matching-in-python/
GNU General Public License v2.0
9.2k stars 878 forks source link

Find term position #294

Closed MahmoudAliEng closed 3 years ago

MahmoudAliEng commented 3 years ago

I'm using fuzz.token_set_ratio(str1, str2) to find str1 in str2 (str1 may not be in the same format as it appears in str2 : up/low case, space between letters, punctuation ...) and it's doing just a great job.

What I need is to find the term position if it exists in the second string. Is that possible with fuzzywuzzy ? Or is there any method to achieve that ?

Thank you for your help.

s-c-p commented 3 years ago

Duplicate of #293

Suggest merge/close with prior https://github.com/seatgeek/fuzzywuzzy/issues/293