class_docstr: Base Preparer class for nlp
class_docstr_tok: ["Base","Preparer","class","for","nlp"]
docstr: Preparing vocab for x.
docstr_tok: ["Preparing","vocab","for","x","."]
code: def prepare_vocabs(self, all_texts, all_labels):
      """Preparing vocab for x."""
      logging.info("Preparing vocab for x ...")
      self.prepare_text_vocab(all_texts)
      logging.info("Preparing vocab for y ...")
      self.prepare_label_vocab(all_labels)
  
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 10 for calling the TextPreparer obj's underlying member method code with example usage: obj.prepare_vocabs(all_texts, all_labels) without return types