Skip to main content

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 hashes)

Uploaded Source

Built Distribution

jaccard_precalc-0.1.6-py3-none-any.whl (2.2 kB view hashes)

Uploaded Python 3

Supported by

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