class_docstr: Base Preparer class for nlp
class_docstr_tok: ["Base","Preparer","class","for","nlp"]
docstr: Preparing embedding.
docstr_tok: ["Preparing","embedding","."]
code: def prepare_embed(self):
      """Preparing embedding."""
      logging.info("Preparing embedding ...")
      if self.model_config["use_pre_train_emb"]:
          prepare_embedding(
              self.model_config["pre_train_emb_path"],
              self.task_config["text_vocab"],
              self.model_config["embedding_path"],
          )
  
imports: import os
  import math
  from pathlib import Path
  from absl import logging
  import delta.compat
  import numpy
  from delta import utils
  from delta.data.preprocess.utils import prepare_embedding
  from delta.utils.solver.utils.solver_utils import get_session_conf
  from delta.data.preprocess.utils import prepare_vocab
  from delta.data.preprocess.utils import prepare_vocab_from_config
  from delta.data.preprocess.utils import get_pre_process_text_ds_iter
  from delta.data.utils.common_utils import get_file_len
label_desc: Use image node_id 7 for calling the TextPreparer obj's underlying member method code with example usage: obj.prepare_embed() without return types