CMD + K

edit_distance

Community

Computing edit distance on arbitrary Python sequences.

Installation

To install this package, run one of the following:

Conda
$conda install conda-forge::edit_distance

Usage Tracking

1.0.4
1.0.3
1.0.1
3 / 8 versions selected
Downloads (Last 6 months): 0

Description

Python module for computing edit distances and alignments between sequences. I needed a way to compute edit distances between sequences in Python. I wasn't able to find any appropriate libraries that do this so I wrote my own. There appear to be numerous edit distance libraries available for computing edit distances between two strings, but not between two sequences. This is written entirely in Python. This implementation could likely be optimized to be faster within Python. And could probably be much faster if implemented in C. The library API is modeled after difflib.SequenceMatcher. This is very similar to difflib, except that this module computes edit distance (Levenshtein distance) rather than the Ratcliff and Oberhelp method that Python's difflib uses.

About

Summary

Computing edit distance on arbitrary Python sequences.

Last Updated

Dec 4, 2019 at 22:33

License

BSD-2-Clause

Total Downloads

16.0K

Supported Platforms

noarch