code: def __init__(self, config):
      self.logger = get_logger()
      self.logger.info("using FileCorpus")
  
      self.char_list = " 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
  
      corpus_file = config["CorpusGenerator"]["corpus_file"]
      self.language = config["CorpusGenerator"]["language"]
      with open(corpus_file, "r") as f:
          corpus_raw = f.read()
      self.corpus_list = corpus_raw.split("\n")[:-1]
      assert len(self.corpus_list) > 0
      random.shuffle(self.corpus_list)
      self.index = 0
  
file_path: PaddleOCR/StyleText/engine/corpus_generators.py
imports: import random
  from utils.logging import get_logger
label_desc: Use image node_id 1 to create a new FileCorpus object from inherited base classes: object with example: obj = FileCorpus(config)