Jaccard Index for Two Strings
Project description
jaccard_index
Jaccard Index Computation
This package provides computation Jaccard Index based on n-grams for strings. This can be used as a metric for computing similarity between two strings e.g. Indentity resolution
Installation
Install using pip:
# pip install jaccard-index
To install using the archive, unpack it and run:
# python setup.py install
Usage
A common use case is to compare strings for similarity:
>>> from jaccard_index.jaccard import jaccard_index
>>> jaccard_index("abc","")
0
>>> jaccard_index("accessary", "accessory")
0.6
>>> jaccard_index("coffee", "coffee")
1
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jaccard_index-0.0.3.tar.gz
(1.8 kB
view details)
Built Distribution
File details
Details for the file jaccard_index-0.0.3.tar.gz
.
File metadata
- Download URL: jaccard_index-0.0.3.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
e56aa314452dfd20f3b54ecb5294d52e7360c370d2582388cc29e31823aca674
|
|
MD5 |
da19a9fb8bbd28bfaaf184abf091f854
|
|
BLAKE2b-256 |
51e8ba9b2e28b7ddee139606d27a314a6baef7f2212a8123a2853216a231d5e6
|
File details
Details for the file jaccard_index-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: jaccard_index-0.0.3-py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
ff37a8921006b6a5ba33f738ff00890ae30bfe8545a8b68d23c6ea16e7fb1dc8
|
|
MD5 |
26bdeca41916b23236ee98508db4086e
|
|
BLAKE2b-256 |
e766a066229192ef1323b5a36bfc68a7d2e850227f96c0754349072369470255
|