Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignoring insertions, deletions or replacements of certain set of characters #45

Open
levitation opened this issue Jan 6, 2024 · 0 comments

Comments

@levitation
Copy link

Would it be possible to count zero distance for certain user-specified characters?

For example, for distance calculation in rapidfuzz I could specify weights=(0, 1, 1), but cannot specify specific characters to ignore. Now in my real use case I need to do string search, not just distance calculation. Therefore I am using fuzzysearch. And instead of specifying weights of (insertion, deletion, substitution), I need to override weights of (insertion, deletion, substitution) of certain characters to zero, while keeping rest of the functionality of find_near_matches intact.

Right now I am mostly interested in ignoring deletions and possibly replacements of certain characters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant