def __init__(self, config_loader: ConfigLoader, parser: Parser): self.__high_frequency_threshold = config_loader.get_high_frequency_threshold( ) self.__parser = parser self.__sym_spell_filtered_file_path = config_loader.get_sym_spell_filtered_file_path( ) self.__sym_spell = SymSpell(max_dictionary_edit_distance=2, prefix_length=7) self.__english_dictionary = set(words.words())