Skip to main content

Find the Jaro Winkler Distance which indicates the similarity score between two Strings

Project description

https://travis-ci.org/nap/jaro-winkler-distance.svg?branch=master https://coveralls.io/repos/nap/jaro-winkler-distance/badge.svg?branch=master&service=github https://img.shields.io/github/license/nap/jaro-winkler-distance.svg https://img.shields.io/pypi/pyversions/pyjarowinkler.svg

Find the Jaro Winkler Distance which indicates the similarity score between two Strings. The Jaro measure is the weighted sum of percentage of matched characters from each file and transposed characters. Winkler increased this measure for matching initial characters.

The Implementation

The original implementation is based on the Jaro Winkler Similarity Algorithm article that can be found on Wikipedia. This Python version of the original implementation is based on the Apache StringUtils library.

Correctness

Unittest similar to what you will find in the StringUtils library were used to validate implementation.

Example

>>> from pyjarowinkler import distance
>>> # Scaling is 0.1 by default
>>> print distance.get_jaro_distance("hello", "haloa", winkler=True, scaling=0.1)
0.76
>>> print distance.get_jaro_distance("hello", "haloa", winkler=False, scaling=0.1)
0.733333333333
Version:

1.7 of 2015-10-21

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyjarowinkler-1.7.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyjarowinkler-1.7-py2.py3-none-any.whl (5.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pyjarowinkler-1.7.tar.gz.

File metadata

  • Download URL: pyjarowinkler-1.7.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyjarowinkler-1.7.tar.gz
Algorithm Hash digest
SHA256 b1f06e9e53edfa761a4900c98484428e58c0991d5cd69270901adf9a2b4715bb
MD5 6abd904844da94ad35c9f28591602d39
BLAKE2b-256 13ad06c7d682a261c069b7a0f43415feb3f6c542ad697977008eadf09820045b

See more details on using hashes here.

File details

Details for the file pyjarowinkler-1.7-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pyjarowinkler-1.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 260db05d8314d55126edfa38049283f5d1eb2748580e3d12a535925a1477e115
MD5 25747490422b6b3459a50a69029a2e41
BLAKE2b-256 9137dd30d385561281ee00a18211d2d178c9da624e85c1720d1f9000fa277e16

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page