You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to search for similar discussions and issues but searched nothing, I'm not sure what keywords to use, so if it is duplicated, please forgive me and give me the solution link.
For example, I have a short str a = "ABCDEFGH" and a long str b = "blah blah ABCDxEFGH blah blah". I want to use rapidfuzz to get the start and end index of the most similar part of the short str of the long str. However, when I use pra = fuzz.partial_ratio_alignment(a, b), the result of b[pra.dest_start:pra.dest_end] is ABCDxEFG rather than ABCDxEFGH. Is there any way to make the program to know that ABCDxEFGH is the most similar part rather than ABCDxEFG?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I tried to search for similar discussions and issues but searched nothing, I'm not sure what keywords to use, so if it is duplicated, please forgive me and give me the solution link.
For example, I have a short str
a = "ABCDEFGH"and a long strb = "blah blah ABCDxEFGH blah blah". I want to use rapidfuzz to get the start and end index of the most similar part of the short str of the long str. However, when I usepra = fuzz.partial_ratio_alignment(a, b), the result ofb[pra.dest_start:pra.dest_end]isABCDxEFGrather thanABCDxEFGH. Is there any way to make the program to know thatABCDxEFGHis the most similar part rather thanABCDxEFG?Beta Was this translation helpful? Give feedback.
All reactions