Open mollerhoj opened 6 years ago
The code reproduces the C# code, at least the core system. So either there is a bug somewhere or this is a functionality that is in another C# file that hasn't been ported... taking a closer look, I think the Python code is missing this function. Do you have some experience with Python and can you make a pull request? This shouldn't bee too difficult I think (the variables are named in a similar way between the Python and C# codes).
Does the dictionary without word-freq count works in symspell ? My dict has a unique values,and so i don't have freq count. when i try to work with this dict,the lookup_compound is not giving me any suggestions,it just returns the same value with 'string:0:0' here is the code,
from sympound import sympound
from jellyfish import levenshtein_distance
distancefun = levenshtein_distance ssc = sympound(distancefun=distancefun, maxDictionaryEditDistance=3)
def test(): print(ssc.load_dictionary("symspelldict.txt", term_index=0, count_index=1)) print(ssc.lookup_compound(input_string="سعلوچا", edit_distance_max=3)) test()
@MukhtarShaima can you please open a separate issue for that? It doesn't look related to this one...
As far as I can tell, this does not support lookup of sentences?
(This is using the example data and sentence from the official SymSpell.cs repo)