About Anaconda Help Download Anaconda

riipl-org / packages / jellyfish 0.6.1

a library for doing approximate and phonetic matching of strings.

Installers

  • linux-64 v0.6.1

conda install

To install this package run one of the following:
conda install riipl-org::jellyfish

Description

=========

jellyfish

.. image:: https://travis-ci.org/jamesturk/jellyfish.svg?branch=master :target: https://travis-ci.org/jamesturk/jellyfish

.. image:: https://coveralls.io/repos/jamesturk/jellyfish/badge.png?branch=master :target: https://coveralls.io/r/jamesturk/jellyfish

.. image:: https://img.shields.io/pypi/v/jellyfish.svg :target: https://pypi.python.org/pypi/jellyfish

.. image:: https://readthedocs.org/projects/jellyfish/badge/?version=latest :target: https://readthedocs.org/projects/jellyfish/?badge=latest :alt: Documentation Status

.. image:: https://ci.appveyor.com/api/projects/status/9xeyl1f5sd5pl40h?svg=true :target: https://ci.appveyor.com/project/jamesturk/jellyfish/

Jellyfish is a python library for doing approximate and phonetic matching of strings.

Written by James Turk [email protected] and Michael Stephens.

See https://github.com/jamesturk/jellyfish/graphs/contributors for contributors.

See http://jellyfish.readthedocs.io for documentation.

Source is available at http://github.com/jamesturk/jellyfish.

Included Algorithms

String comparison:

  • Levenshtein Distance
  • Damerau-Levenshtein Distance
  • Jaro Distance
  • Jaro-Winkler Distance
  • Match Rating Approach Comparison
  • Hamming Distance

Phonetic encoding:

  • American Soundex
  • Metaphone
  • NYSIIS (New York State Identification and Intelligence System)
  • Match Rating Codex

Example Usage

import jellyfish jellyfish.levenshteindistance(u'jellyfish', u'smellyfish') 2 jellyfish.jarodistance(u'jellyfish', u'smellyfish') 0.89629629629629637 jellyfish.dameraulevenshteindistance(u'jellyfish', u'jellyfihs') 1

jellyfish.metaphone(u'Jellyfish') 'JLFX' jellyfish.soundex(u'Jellyfish') 'J412' jellyfish.nysiis(u'Jellyfish') 'JALYF' jellyfish.matchratingcodex(u'Jellyfish') 'JLLFSH'

Running Tests

If you are interested in contributing to Jellyfish, you may want to run tests locally. Jellyfish uses tox_ to run tests, which you can setup and run as follows::

pip install tox # cd jellyfish/ tox

.. _tox: https://tox.readthedocs.io/en/latest/


© 2024 Anaconda, Inc. All Rights Reserved. (v4.0.5) Legal | Privacy Policy