I have an entire list of words with the correct spellings called ref.txt . i have a list of sentences and i have managed to extract words from them using regex. i'll elaborate it with an example .
suppose ref.txt contains - Mumbai , Andheri ,Jacob Circle, Bandra
.
I have a list of sentences like -
['Blue Meadows near andhri ', 'Oberoi Heights opp windy road off Bnadra' ,
'Red Heavens club ,behind Mumbia club near Jacob Circle']
there isnt much documentation about jellyfish.
import jellyfish as jf
jf.jaro_distance(andhri,andheri)
the problem is , after extraction of the words using regex,how do i compare it with the entire list.. my algorithm should automatically suggest 'andheri' for andhri due to lowest cost..
in case u have some other ideas to implement , plz do reccommend.. thanks