(self, all_texts)
Preparing text vocab
Preparing text vocab
Preparing text vocab
def prepare_text_vocab(self, all_texts):
    """Preparing text vocab"""
    if os.path.exists(self.text_vocab_file_path) and \
      self.use_custom_vocab:
      logging.info("Reuse text vocab file: {}".format(
          self.text_vocab_file_path))
    else:
      prepare_vocab(
          self.text_vocab_file_path,
          all_texts,
          min_frequency=self.vocab_min_frequency)
      logging.info("Generate text vocab file: {}".format(
          self.text_vocab_file_path))
def prepare_text_vocab ( self , all_texts ) : if os . path . exists ( self . text_vocab_file_path ) and self . use_custom_vocab : logging . info ( "Reuse text vocab file: {}" . format ( self . text_vocab_file_path ) ) else : prepare_vocab ( self . text_vocab_file_path , all_texts , min_frequency = self . vocab_min_frequency ) logging . info ( "Generate text vocab file: {}" . format ( self . text_vocab_file_path ) )