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!

Jaccard similarity document manager

Project Description

This package uses Jaccard similarity with bag of words to find similarities between passed in contents and a json file.

There are two useful functions:

save(filename, docID, contents) ===> takes in the json filename, an id for the document you want to save,
and the contents of the document in a string. The function adds on the docID and contents to filename, and if filename doesn’t exist, it creates a new file and inserts the passed in contents.
def getSimilarities(filename, docID, contents, threshold) ===> takes in the filename of all the documents to
to compare to, docID of the document you want to find similarities for, the contents of the document, a similarity threshold between 0 and 1 inclusive. The function returns a list of (similarity, docID) in descending order of all documents whose similarities are above or equal to the threshold.
Release History

Release History

This version
History Node

1.2

History Node

1.1

History Node

1.0

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
jsim-1.2.tar.gz (3.4 kB) Copy SHA256 Checksum SHA256 Source Jan 27, 2016

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