String similarity with Python + Sqlite (Levenshtein distance / edit distance)
Here is a ready-to-use example test.py: import sqlite3 db = sqlite3.connect(‘:memory:’) db.enable_load_extension(True) db.load_extension(‘./spellfix’) # for Linux #db.load_extension(‘./spellfix.dll’) # <– UNCOMMENT HERE FOR WINDOWS db.enable_load_extension(False) c = db.cursor() c.execute(‘CREATE TABLE mytable (id integer, description text)’) c.execute(‘INSERT INTO mytable VALUES (1, “hello world, guys”)’) c.execute(‘INSERT INTO mytable VALUES (2, “hello there everybody”)’) c.execute(‘SELECT * FROM mytable WHERE … Read more