text: import json
  import logging
  
  logging.basicConfig(level=logging.INFO)
  logger = logging.getLogger("MAT")
  
  log_doc_file = "data/arabic/augment/data/aco_text.txt"
  src_man_train = "data/arabic/augment/data/tarred/train/bucket{}/tarred_audio_manifest_woan.json"
  src_man_dev = "data/arabic/augment/data/dev/manifest_woan.json"
  src_man_test = "data/arabic/augment/data/test/manifest_woan.json"
  
  with open(log_doc_file, encoding="utf-8", mode="w") as doc_file:
      src_manifests = [src_man_train.format(index) for index in range(21)]
      src_manifests.append(src_man_dev)
      src_manifests.append(src_man_test)
      for src_man in src_manifests:
          with open(src_man, encoding="utf-8") as src_json:
              for jn in src_json:
                  try:
                      jd = json.loads(jn)
                      doc_file.write("{}\n".format(str(jd["text"]).strip()))
                  except Exception as exp:
                      logger.exception(exp)
              logger.info("Completed writing: {}".format(src_man))
  