wolfgarbe / SymSpell

SymSpell: 1 million times faster spelling correction & fuzzy search through Symmetric Delete spelling correction algorithm
https://seekstorm.com/blog/1000x-spelling-correction/
MIT License
3.12k stars 284 forks source link

AttributeError: 'SymSpell' object has no attribute 'build_vocab' #89

Closed supreet21 closed 4 years ago

supreet21 commented 4 years ago

AttributeError Traceback (most recent call last)

in () 15 corpus_file_name = 'spell_check_dictionary.txt' 16 symspell = SymSpell()#verbose=10 omited ---> 17 symspell.build_vocab( 18 dictionary=corpus, 19 file_dir=corpus_dir, file_name=corpus_file_name) AttributeError: 'SymSpell' object has no attribute 'build_vocab'
wolfgarbe commented 4 years ago

I guess you refer to some code from Edward Ma, who is using a Python port of SymSpell: https://github.com/makcedward/nlp/blob/master/sample/util/nlp-util-symspell.ipynb https://towardsdatascience.com/essential-text-correction-process-for-nlp-tasks-f731a025fcc3 https://github.com/mammothb/symspellpy

Please contact the author of that code directly, as the error you are experiencing is not related to the original SymSpell