JaroWinkler
Original, standard and customisable versions of the Jaro-Winkler functions.
>>> import jaro
>>> jaro.jaro_winkler_metric(u'SHACKLEFORD', u'SHACKELFORD')
0.9818181
>>> help(jaro)
Help on package jaro:
NAME
jaro - Python translation of the original Jaro-Winkler functions.
DESCRIPTION
The Jaro-Winkler functions compare two strings and return a score indicating
how closely the strings match. The score ranges from 0 (no match) to 1
(perfect match).
Two null strings ('') will compare as equal. Strings should be unicode
strings, and will be compared as given; the caller is responsible for
capitalisations and trimming leading/trailing spaces.
You should normally only need to use either the jaro_metric() or
jaro_winkler_metric() functions defined here. If you want to implement your
own, non-standard metrics, look at the comments and functions in the jaro.py
submodule.
PACKAGE CONTENTS
...
jaro
strcmp95
...
FUNCTIONS
jaro_metric(string1, string2)
The standard, basic Jaro string metric.
jaro_winkler_metric(string1, string2)
The Jaro metric adjusted with Winkler's modification, which boosts
the metric for strings whose prefixes match.
original_metric(string1, string2)
The same metric that would be returned from the reference Jaro-Winkler
C code, taking as it does into account a typo table and adjustments for
longer strings.
...
custom_metric(string1, string2, typo_table, typo_scale,
boost_threshold, pre_len, pre_scale, longer_prob)
Calculate the Jaro-Winkler metric with parameters of your own choosing.
...
Metadata
Release files for jaro-winkler 2.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jaro_winkler-2.0.3-py3-none-any.whl | Python 3 | none | any | Details for jaro_winkler-2.0.3-py3-none-any.whl |
Release files / jaro_winkler-2.0.3-py3-none-any.whl
| Download URL | jaro_winkler-2.0.3-py3-none-any.whl |
|---|---|
| Size | 33.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9ad42a94eb110351e72dd5b9e0a0f1053b0760761d676f9be35da19ea80d511b
|
|
BLAKE2b-256 checksum How to use checksums |
c6fbf62082539f2e62ecb70e1f8fefcea051f3e8f993731b3aa83dd1db5814f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.6.9
|
Security for jaro-winkler 2.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.