I'm trying to fuzzy-search for a short text in a larger text.
Common python libs, such as fuzzywuzzy and rapidfuzz, support the "partial_ratio" function, but those only return a score, not the location of the match.
Is there some library or function which I can use to also obtain where the fuzzy match was, (something like the span method of regex match)?
I looked at fuzzywuzzy and noted that finding the index of a match is an open issue. The same is true for RapidFuzz.
This prompted me "(something like the span method of regex match)" to do some research around this method. During my research I found the Python package regex. The package's Readme talks about fuzzy matching. I haven't used this package, but it seem that it might be useful to solving your use case.