We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
input_term="ilove my family" suggestions = sym_spell.word_segmentation(input_term)
The result is still "ilove my family", the correct result should be "i love my family"
The text was updated successfully, but these errors were encountered:
Hi @pineking I have tried input term you used with the following code
import pkg_resources from symspellpy.symspellpy import SymSpell sym_spell = SymSpell(max_dictionary_edit_distance=0, prefix_length=7) dictionary_path = pkg_resources.resource_filename( "symspellpy", "frequency_dictionary_en_82_765.txt" ) sym_spell.load_dictionary(dictionary_path, term_index=0, count_index=1) input_term = "ilove my family" result = sym_spell.word_segmentation(input_term) print(f"{result.corrected_string}, {result.distance_sum}, {result.log_prob_sum}")
and I was able to get the expected correct result of
i love my family, 1, -12.819643708790021
Can you try that code snippet and see if you can get the same result as I have?
Sorry, something went wrong.
No branches or pull requests
input_term="ilove my family"
suggestions = sym_spell.word_segmentation(input_term)
The result is still "ilove my family", the correct result should be "i love my family"
The text was updated successfully, but these errors were encountered: