bahriddin / midr

Python package for calculating global and Local edit distances

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This package (MIDR) calculates global edit distance and local edit distances. how to use:

  1. Import Midr class from midr package: from midr import Midr
  2. create object giving 4 parameters (M - match score, I - insert score, D - delete score, R - replace score, default: 0, 1, 1, 1 - Livenstein distance): obj = Midr(1, -1, -1, -1)
  3. Calculate distance between 2 strings: obj.global_edit_distance(word1, word2) or obj.local_edit_distance(word1, word2)

About

Python package for calculating global and Local edit distances

License:MIT License


Languages

Language:Python 100.0%