Skip to content

Commit

Permalink
Readme modified
Browse files Browse the repository at this point in the history
  • Loading branch information
bahriddin committed Sep 3, 2017
1 parent 7080c33 commit 9e9c40a
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 23 deletions.
48 changes: 25 additions & 23 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
This package (MIDR) calculates global edit distance and local edit distance.
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)```
```obj.local_edit_distance(word1, word2)```

0 comments on commit 9e9c40a

Please sign in to comment.