Closed mrodin52 closed 2 years ago
pyspellchecker 0.6.3
generates error: Traceback (most recent call last): File "F:/UserMike/Documents/PycharmProjects/CorpusPrograms/Test/test_match_strings.py", line 4, in spell.word_frequency.remove_words(['offtenly', 'fro', ]) File "C:\Users\Mike\AppData\Roaming\Python\Python38\site-packages\spellchecker\spellchecker.py", line 511, in remove_words self._dictionary.pop(word if self._case_sensitive else word.lower()) KeyError: 'offtenly'
In a simple program:
from spellchecker import SpellChecker spell = SpellChecker() spell.word_frequency.remove_words(['offtenly', 'fro', ])
pyspellchecker 0.6.3
generates error: Traceback (most recent call last): File "F:/UserMike/Documents/PycharmProjects/CorpusPrograms/Test/test_match_strings.py", line 4, in
spell.word_frequency.remove_words(['offtenly', 'fro', ])
File "C:\Users\Mike\AppData\Roaming\Python\Python38\site-packages\spellchecker\spellchecker.py", line 511, in remove_words
self._dictionary.pop(word if self._case_sensitive else word.lower())
KeyError: 'offtenly'
In a simple program:
from spellchecker import SpellChecker spell = SpellChecker() spell.word_frequency.remove_words(['offtenly', 'fro', ])