wolfgarbe / SymSpell

SymSpell: 1 million times faster spelling correction & fuzzy search through Symmetric Delete spelling correction algorithm

Home Page:https://seekstorm.com/blog/1000x-spelling-correction/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

supreet21 opened this issue · comments


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'

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