This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": 1, | |
"disable_existing_loggers": false, | |
"formatters": { | |
"simple": { | |
"format": "%(asctime)s - %(levelname)s - %(module)s - %(message)s" | |
}, | |
"debug": { | |
"format": "%(asctime)s - %(levelname)s - %(pathname)s:%(lineno)s:%(funcName)s - %(message)s" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#this calculates edit distance not levenstein edit distance | |
class editdistance: | |
def ed(self,word1,word2): | |
len_1=len(word1) | |
len_2=len(word2) | |
x =[[0]*(len_2+1) for _ in range(len_1+1)]#the matrix whose last element ->edit distance |