CorrectOCR.dictionary module¶
- class CorrectOCR.dictionary.Dictionary(path=None, ignoreCase=False)[source]¶
-
Set of words to use for determining correctness of
Tokens
and suggestions.Note: A Dictionary “contains” all “words” that contain at most 1 alphabetic letters, such as
8,5
or(600)
orA4
.- Parameters
- add(group, word, nowarn=False, dirty=True)[source]¶
Add a new word (sans punctuation) to the dictionary. Silently drops non-alpha strings.