class_docstr: Build a SQLite database from folder with txt files, json files or
  `Wiki Extractor <https://github.com/attardi/wikiextractor>`_ files.
class_docstr_tok: ["Build","a","SQLite","database","from","folder","with","txt","files",",","json","files","or","`","Wiki","Extractor","<","https",":","\/\/github.com\/attardi\/wikiextractor",">","`","_","files","."]
docstr: Extract file contents from '.txt' file.
  
  Args:
      fpath: path to a '.txt' file.
  
  Returns:
       a list with tuple of normalized file name and file contents
docstr_tok: ["Extract","file","contents","from","'.txt","'","file",".","Args",":","fpath",":","path","to","a","'.txt","'","file",".","Returns",":","a","list","with","tuple","of","normalized","file","name","and","file","contents"]
code: def _get_file_contents(
      fpath: Union[Path, str]
  ) -> List[Tuple[str, str]]:
      """Extract file contents from '.txt' file.
  
      Args:
          fpath: path to a '.txt' file.
  
      Returns:
           a list with tuple of normalized file name and file contents
  
      """
      with open(fpath, encoding="utf-8") as fin:
          text = fin.read()
          normalized_text = unicodedata.normalize("NFD", text)
          return [(fpath.name, normalized_text)]
  
imports: import json
  import logging
  import sqlite3
  import unicodedata
  from multiprocessing import Pool
  from pathlib import Path
  from typing import Union, List, Tuple, Generator, Any, Optional
  from tqdm import tqdm
  from deeppavlov.core.commands.utils import expand_path
  from deeppavlov.core.common.errors import ConfigError
  from deeppavlov.core.common.registry import register
  from deeppavlov.core.data.dataset_reader import DatasetReader
  from deeppavlov.core.data.utils import download
label_desc: Use image node_id 4 for calling the ODQADataReader obj's underlying member method code with example usage: obj._get_file_contents(fpath) and returns: list