The Jaccard index measures exhaustive substring comparison of two strings. This package is a slightly modified Jaccard with pre-calculation accelerate results.
Project description
The Jaccard index measures exhaustive substring comparison of two strings. This package is a slightly modified Jaccard with pre-calculation accelerate results.
example usage:
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
Built Distribution
Hashes for jaccard_precalc-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c60dba98bc1ae798281fa933c6c90aaafdda198fe9ea7dbb34a32aabd5e0f83 |
|
MD5 | 9904e36d88a71a99de3ee0c71d65ff39 |
|
BLAKE2b-256 | 572994702e185dff475216bf6e4078c5e7f16fac972a3bafe56a5f503160f2ae |