Contents:
CorrectOCR.dictionary.
Dictionary
Bases: set, typing.Generic
set
typing.Generic
Set of words to use for determining correctness of Tokens and suggestions.
Tokens
path (Optional[Path]) – A path for loading a previously saved dictionary.
Optional
Path
ignoreCase (bool) – Whether the dictionary is case sensitive.
bool
clear
Remove all elements from this set.
add
Add a new word to the dictionary. Silently drops non-alpha strings.
word (str) – The word to add.
str
nowarn (bool) – Don’t warn about long words (>15 letters).
save
Save the dictionary.
path (Optional[Path]) – Optional new path to save to.