I get StopIteration error for loading french dictionary and using word_segmentation. I used this one. linksym_spell = SymSpell(max_dictionary_edit_distance=2, count_threshold=10, prefix_length=7) dictionary_path = pkg_resources.resource_filename( "symspellpy", "fr-100k.txt") sym_spell.load_dictionary(dictionary_path, term_index=0, count_index=1) sym_spell.word_segmentation('mama mia')
If you are using the Python port of SymSpell please forward your issue to the author of the Python port repository: https://github.com/mammothb/symspellpy
I get StopIteration error for loading french dictionary and using word_segmentation. I used this one. link
sym_spell = SymSpell(max_dictionary_edit_distance=2, count_threshold=10, prefix_length=7) dictionary_path = pkg_resources.resource_filename( "symspellpy", "fr-100k.txt") sym_spell.load_dictionary(dictionary_path, term_index=0, count_index=1) sym_spell.word_segmentation('mama mia')
Error: