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
It seems that even when BESTMATCH is specified, the fuzzy matching engine doesn't account for user-specified costs in choosing the optimal match. Consider the following examples:
Even if the cost is allowed to exceed 1, as in the first search, the engine should still match "voicees", as an insertion of an extra "e" is less of a cost than replacing "c" with "x".
A natural extension would be to allow regex.search(r'(voices){1i+1d+2s}', 'voixes voicees', regex.BESTMATCH), i.e. find the best match with no limit, using costs.
The text was updated successfully, but these errors were encountered:
It seems that even when BESTMATCH is specified, the fuzzy matching engine doesn't account for user-specified costs in choosing the optimal match. Consider the following examples:
Even if the cost is allowed to exceed 1, as in the first search, the engine should still match "voicees", as an insertion of an extra "e" is less of a cost than replacing "c" with "x".
A natural extension would be to allow
regex.search(r'(voices){1i+1d+2s}', 'voixes voicees', regex.BESTMATCH)
, i.e. find the best match with no limit, using costs.The text was updated successfully, but these errors were encountered: