ICTRC / Parsivar

A Language Processing Toolkit for Persian
MIT License
226 stars 34 forks source link

how to update the spellchecker #21

Open naarkhoo opened 2 years ago

naarkhoo commented 2 years ago

thanks for developing Parsivar, I have been enjoying a lot using it ! I wonder how I can correct the spellchecker mistakes, for example:

tmp_text = 'دلم برا مظلومیت علی کباب شد'
res = myspell_checker.spell_corrector(tmp_text)

output:

دوم با مظلومیت علی کتاب شد