code: def __init__(
      self,
      words_dict_filename: str,
      ngrams_matrix_filename: str,
      lang: str = "@en",
      thresh: int = 1000,
  ):
      self.words_dict_filename = words_dict_filename
      self.ngrams_matrix_filename = ngrams_matrix_filename
      if lang == "@en":
          self.letters = "abcdefghijklmnopqrstuvwxyz"
      elif lang == "@ru":
          self.letters = "абвгдеёжзийклмнопрстуфхцчшщъыьэюя"
      else:
          raise ValueError(f'Unexpected lang value: "{lang}"')
      self.thresh = thresh
      self.load()
      self.make_ngrams_dicts()
  
file_path: DeepPavlov/deeppavlov/models/entity_extraction/find_word.py
imports: import itertools
  import pickle
  from collections import Counter
  import numpy
  import scipy
  from deeppavlov.core.commands.utils import expand_path
label_desc: Use image node_id 1 to create a new WordSearcher object  with example: obj = WordSearcher(words_dict_filename, ngrams_matrix_filename, lang, thresh)