def _get_wiki_contents(fpath: Union[Path, str]) -> List[Tuple[str, str]]:
        """Extract file contents from wiki extractor formatted files.

        Args:
            fpath: path to a '.txt' file in wiki extractor format

        Returns:
            a list with tuples of normalized file name and file contents

        """
        docs = []
        with open(fpath, encoding='utf-8') as fin:
            for line in fin:
                doc = json.loads(line)
                if not doc:
                    continue
                text = doc['text']
                normalized_text = unicodedata.normalize('NFD', text)
                docs.append((doc['title'], normalized_text))
        return docs
Extract file contents from wiki extractor formatted files.

        Args:
            fpath: path to a '.txt' file in wiki extractor format

        Returns:
            a list with tuples of normalized file name and file contents

        
deeppavlov/dataset_readers/odqa_reader.py