allow the usage of Hamming for different string lengths. Length differences are handled as
insertions / deletions
remove support for boolean preprocessor functions in rapidfuzz.fuzz and rapidfuzz.process.
The processor argument is now always a callable or None.
update defaults of the processor argument to be None everywhere. This changes the defaults of some of
the functions in rapidfuzz.fuzz and rapidfuzz.process.
rapidfuzz.process no longer calls scorers with processor=None. For this reason scorer functions
do not need to provide this argument anymore.
remove option to pass keyword arguments to scorer via **kwargs in rapidfuzz.process. They can be passed
via a scorer_kwargs argument now. This ensures this does not break when extending function parameters and
prevents naming clashes.
remove rapidfuzz.string_metric module. Replacements for all functions are available in rapidfuzz.distance
Added
added support for arbitrary hashable sequence in the pure Python fallback implementation of all functions in rapidfuzz.distance
added support for None and float("nan") in process.cdist as long as the underlying scorer supports it.
This is the case for all scorers returning normalized results.
Fixed
fix division by zero in simd implementation of normalized metrics leading to incorrect results
- allow the usage of ``Hamming`` for different string lengths. Length differences are handled as
insertions / deletions
- remove support for boolean preprocessor functions in ``rapidfuzz.fuzz`` and ``rapidfuzz.process``.
The processor argument is now always a callable or None.
- update defaults of the processor argument to be ``None`` everywhere. This changes the defaults of some of
the functions in ``rapidfuzz.fuzz`` and ``rapidfuzz.process``.
- ``rapidfuzz.process`` no longer calls scorers with ``processor=None``. For this reason scorer functions
do not need to provide this argument anymore.
- remove option to pass keyword arguments to scorer via ``**kwargs`` in ``rapidfuzz.process``. They can be passed
via a ``scorer_kwargs`` argument now. This ensures this does not break when extending function parameters and
prevents naming clashes.
- remove ``rapidfuzz.string_metric`` module. Replacements for all functions are available in ``rapidfuzz.distance``
Added
- added support for arbitrary hashable sequence in the pure Python fallback implementation of all functions in ``rapidfuzz.distance``
- added support for ``None`` and ``float("nan")`` in ``process.cdist`` as long as the underlying scorer supports it.
This is the case for all scorers returning normalized results.
Fixed
fix division by zero in simd implementation of normalized metrics leading to incorrect results
[2.15.1] - 2023-04-11
^^^^^^^^^^^^^^^^^^^^^
Fixed
- fix incorrect tag dispatching implementation leading to AVX2 instructions in the SSE2 code path
Added
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Updates the requirements on rapidfuzz to permit the latest version.
Release notes
Sourced from rapidfuzz's releases.
Changelog
Sourced from rapidfuzz's changelog.
... (truncated)
Commits
c8be909
handle empty strings more consistentlyfd4ba10
skip test if numpy is not installedc4934bf
remove strict parameter from zip5537f9c
fix out of bounds read33a2e8f
release 3.0158b7be
fix division by zerof193bfa
add support for None / nan in process.cdist0ea45a5
Merge pull request #317 from maxbachmann/3.0931709c
release v3.0f6953ed
improve compatibility between Python and C++ implementationDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)