class_docstr: Data Processor for Assistant dialogues.
class_docstr_tok: ["Data","Processor","for","Assistant","dialogues","."]
docstr: Constructs DialogueAssistantDataProcessor
  Args:
      data_dir: path to data directory
      tokenizer: tokenizer object
docstr_tok: ["Constructs","DialogueAssistantDataProcessor","Args",":","data_dir",":","path","to","data","directory","tokenizer",":","tokenizer","object"]
code: def __init__(self, data_dir: str, tokenizer: object, cfg):
      """
      Constructs DialogueAssistantDataProcessor
      Args:
          data_dir: path to data directory
          tokenizer: tokenizer object
      """
      self.data_dir = data_dir
      self._tokenizer = tokenizer
      self.cfg = cfg
      self.intents = self.open_file("dict.intents.csv")
      if self.cfg.preprocess_intent_function == "remove_domain":
          self.intents = [
              DialogueAssistantDataProcessor.normalize_zero_shot_intent(
                  intent
              )
              for intent in self.intents
          ]
      self.slots = self.open_file("dict.slots.csv")
      (
          bio_slot_ids_to_unified_slot_ids,
          unified_slots,
      ) = DialogueAssistantDataProcessor.map_bio_format_slots_to_unified_slots(
          self.slots
      )
      self.slots = unified_slots
  
      self.bio_slot_ids_to_unified_slot_ids = (
          bio_slot_ids_to_unified_slot_ids
      )
      self.services = sorted(
          list(set([intent.split("_")[0] for intent in self.intents]))
      )
      self.empty_slot_id = [
          str(idx)
          for idx, slot_name in enumerate(self.slots)
          if slot_name == "O"
      ][0]
  
file_path: NeMo/nemo/collections/nlp/data/dialogue/data_processor/assistant_data_processor.py
imports: import os
  from nemo.collections.nlp.data.dialogue.data_processor.data_processor import DialogueDataProcessor
  from nemo.collections.nlp.data.dialogue.input_example.input_example import DialogueInputExample
label_desc: Use image node_id 1 to create a new DialogueAssistantDataProcessor object from inherited base classes: DialogueDataProcessor with example: obj = DialogueAssistantDataProcessor(data_dir, tokenizer, cfg)