The Jaccard index measures exhaustive substring comparison of two strings. This package is a slightly modified Jaccard with pre-calculation accelerate results.
Project description
Jaccard Precalculated String Matcher
The Jaccard index measures exhaustive substring comparison of two strings. This package is a slightly modified Jaccard with pre-calculation accelerate results.
from jaccard_precalc.JaccardPrecalc import JaccardPrecalc
string_list = ['Andrew Matte, 123 Main St, Toronto, Canada']
jac = JaccardPrecalc(string_list)
# jac.search(query_string, number_of_results)
results = jac.search('Andy Matte, Toronto, CA', 1) # returns a list of dicts where each dict is {input: score}, sorted by top score
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
jaccard-precalc-0.1.6.tar.gz
(1.8 kB
view details)
Built Distribution
File details
Details for the file jaccard-precalc-0.1.6.tar.gz
.
File metadata
- Download URL: jaccard-precalc-0.1.6.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.9.7 Linux/5.13.0-40-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef7c39d519b413d050dbfbd0065ce12f8b321b65f3638f0764e8ed3a941ecc6d |
|
MD5 | 1540452093effd1ccce6a9ca2801ac9c |
|
BLAKE2b-256 | e955a8a1a6e6a32c428b4e0ee05eb06eaf414efcdd53312c7e51d9b50e803079 |
File details
Details for the file jaccard_precalc-0.1.6-py3-none-any.whl
.
File metadata
- Download URL: jaccard_precalc-0.1.6-py3-none-any.whl
- Upload date:
- Size: 2.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.9.7 Linux/5.13.0-40-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f52ad1a8a6a46dec54eb7f70aedcb8cc7ed397d6d26ef7ee986ce2b6d7e74f07 |
|
MD5 | 1be1dbf386e0879191ff050813ddb70c |
|
BLAKE2b-256 | 0c969edf33e8b5b0227ff8717a35884ae2ea72e70e8c0dcac12047f232d8abbe |