code: def load_text_from_folder(folder):
      """
      Load files content into a list of docs (texts)
  
      Args:
          folder: A path to a folder containing text files
  
      Returns:
          A list of documents (List[String])
      """
      files_content = []
      try:
          for filename in os.listdir(folder):
              with open(folder + os.sep + filename, "rb") as f:
                  try:
                      files_content.append(
                          ((f.read()).decode("UTF-8", errors="replace"))
                          .replace("\n", " ")
                          .replace("\r", " ")
                          .replace("\b", " ")
                      )
                  except Exception as e:
                      logger.error(str(e))
      except Exception as e:
          logger.error("Error in load_text: %s", str(e))
  
      return files_content
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import argparse
  import csv
  import logging
  import os
  import sys
  from multiprocessing import Pool
  from os import makedirs, path
  from nlp_architect import LIBRARY_OUT
  from nlp_architect.utils.embedding import FasttextEmbeddingsModel
  from nlp_architect.utils.io import validate_existing_directory
  from nlp_architect.utils.text import SpacyInstance
  from .np_scorer import NPScorer
label_desc: Use image node_id 2 for calling a global function with example usage: load_text_from_folder(folder) and returns: files_content