def __init__(self, load_path: str, wiki_filename: str, entities_filename: str, inverted_index_filename: str,<EOL>id_to_name_file: str, lemmatize: bool = True, debug: bool = False, rule_filter_entities: bool = True,<EOL>use_inverted_index: bool = True, language: str = '<STR_LIT>', *args, **kwargs) -> None:
super().__init__(save_path=None, load_path=load_path)<EOL>self.morph = pymorphy2.MorphAnalyzer()<EOL>self.lemmatize = lemmatize<EOL>self.debug = debug<EOL>self.rule_filter_entities = rule_filter_entities<EOL>self.use_inverted_index = use_inverted_index<EOL>self._language = language<EOL>if language not in self.LANGUAGES:<EOL><INDENT>log.warning(f'<STR_LIT>')<EOL><DEDENT>self._wiki_filename = wiki_filename<EOL>self._entities_filename = entities_filename<EOL>self.inverted_index_filename = inverted_index_filename<EOL>self.id_to_name_file = id_to_name_file<EOL>self.name_to_q: Optional[Dict[str, List[Tuple[str]]]] = None<EOL>self.wikidata: Optional[Dict[str, List[List[str]]]] = None<EOL>self.inverted_index: Optional[Dict[str, List[Tuple[str]]]] = None<EOL>self.id_to_name: Optional[Dict[str, Dict[List[str]]]] = None<EOL>self.load()<EOL>if self.use_inverted_index:<EOL><INDENT>alphabet = "<STR_LIT>"<EOL>dictionary_words = list(self.inverted_index.keys())<EOL>self.searcher = LevenshteinSearcher(alphabet, dictionary_words)<EOL><DEDENT>
Args:
    load_path: path to folder with wikidata files
    wiki_filename: file with Wikidata triplets
    entities_filename: file with dict of entity titles (keys) and entity ids (values)
    inverted_index_filename: file with dict of words (keys) and entities containing these words (values)
    id_to_name_file: file with dict of entity ids (keys) and entities names and aliases (values)
    lemmatize: whether to lemmatize tokens of extracted entity
    debug: whether to print entities extracted from Wikidata
    rule_filter_entities: whether to filter entities which do not fit the question
    use_inverted_index: whether to use inverted index for entity linking
    language - the language of the linker (used for filtration of some questions to improve overall performance)
    *args:
    **kwargs: