class_docstr: CDSSM Model preprocessor.
docstr: Apply transformation on data, create `letter-ngram` representation.
  
  :param data_pack: Inputs to be preprocessed.
  :param verbose: Verbosity.
  
  :return: Transformed data as :class:`DataPack` object.
docstr_tok: ["Apply","transformation","on","data",",","create","`","letter-ngram","`","representation",".",":","param","data_pack",":","Inputs","to","be","preprocessed",".",":","param","verbose",":","Verbosity",".",":","return",":","Transformed","data","as",":","class",":","`","DataPack","`","object","."]
code: def transform(
      self, data_pack: DataPack, verbose: int = 1
  ) -> DataPack:
      """
      Apply transformation on data, create `letter-ngram` representation.
  
      :param data_pack: Inputs to be preprocessed.
      :param verbose: Verbosity.
  
      :return: Transformed data as :class:`DataPack` object.
      """
      data_pack = data_pack.copy()
      func = chain_transform(self._default_units())
      data_pack.apply_on_text(func, inplace=True, verbose=verbose)
      data_pack.apply_on_text(
          self._left_fixedlength_unit.transform,
          mode="left",
          inplace=True,
          verbose=verbose,
      )
      data_pack.apply_on_text(
          self._right_fixedlength_unit.transform,
          mode="right",
          inplace=True,
          verbose=verbose,
      )
      post_units = [units.NgramLetter(reduce_dim=False)]
      if self._with_word_hashing:
          term_index = self._context["vocab_unit"].state["term_index"]
          post_units.append(units.WordHashing(term_index))
      data_pack.apply_on_text(
          chain_transform(post_units), inplace=True, verbose=verbose
      )
      return data_pack
  
file_path: MatchZoo/matchzoo/preprocessors/cdssm_preprocessor.py
imports: from tqdm import tqdm
  from .None import units
  from .chain_transform import chain_transform
  from matchzoo import DataPack
  from matchzoo.engine.base_preprocessor import BasePreprocessor
  from .build_vocab_unit import build_vocab_unit
label_desc: Use image node_id 3 for calling the CDSSMPreprocessor obj's underlying member method code with example usage: obj.transform(data_pack, verbose) and returns: data_pack