Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Hybrid Jaccard

Project Description
# hybrid-jaccard
Implementation of hybrid jaccard similarity

Package files:
|
|-> __init__.py
|
|-> hybrid_jaccard.py: contains the base class for hybrid jaccard string matching
|
|-> jaro.py & typo_tables.py: contain the methods for jaro distance calculation
|
|-> munkres.py: contains the hungarian matching algorithm
|
|-> eye_config.txt: contains the configuration info for the hybrid-jaccard class
|
|-> eye_reference.txt: contains the reference eye colors
|
|-> input.txt: a sample input file for testing the program
|
|-> README.md
|
|-> LICENSE

Usage:

You should import "HybridJaccard" in your code. The main class is HybridJaccard.
The class constructor gets two arguments, path to reference and config files respectively.
The "findBestMatch" method returns the best match for the input string among those in the
reference file if one exists, and returns "NONE" otherwise. A sample usage might be like:

sm = HybridJaccard()
match = sm.findBestMatch("beautiful light bluish eyes")

about eye_config.txt:
-- it has a field "type" which is for now always "hybrid_jaccard"
-- it has a field "partial_method" which can be "jaro" or "levenshtein"
-- it has a field "threshold" which determines how picky we want to be in hybrid jaccard algorithm before doing the matching
Release History

Release History

This version
History Node

0.0.3

History Node

0.0.2

History Node

0.0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
hybridJaccard-0.0.3.tar.gz (3.1 kB) Copy SHA256 Checksum SHA256 Source Dec 22, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting