class_docstr: Data Processor for Assistant dialogues.
class_docstr_tok: ["Data","Processor","for","Assistant","dialogues","."]
docstr: maps BIO format slots to unified slots (meaning that B-alarm_time and I-alarm_time both map to alarm_time)
  called even slots does not contain BIO, for unified interface
  in that case slots == unified_slots and bio_slot_ids_to_unified_slot_ids is an identity mapping i.e. {"0": "0", "1": "1"}
docstr_tok: ["maps","BIO","format","slots","to","unified","slots","(","meaning","that","B-alarm_time","and","I-alarm_time","both","map","to","alarm_time",")","called","even","slots","does","not","contain","BIO",",","for","unified","interface","in","that","case","slots","==","unified_slots","and","bio_slot_ids_to_unified_slot_ids","is","an","identity","mapping","i.e",".","{","``","0","''",":","``","0","''",",","``","1","''",":","``","1","''","}"]
code: def map_bio_format_slots_to_unified_slots(slots):
      """
      maps BIO format slots to unified slots (meaning that B-alarm_time and I-alarm_time both map to alarm_time)
      called even slots does not contain BIO, for unified interface
      in that case slots == unified_slots and bio_slot_ids_to_unified_slot_ids is an identity mapping i.e. {"0": "0", "1": "1"}
      """
      bio_slot_ids_to_unified_slot_ids = {}
      unified_slots = []
      unified_idx = -1
      for idx, slot in enumerate(slots):
          if (
              slot.replace("I-", "").replace("B-", "")
              not in unified_slots
          ):
              unified_idx += 1
              unified_slots.append(
                  slot.replace("I-", "").replace("B-", "")
              )
          bio_slot_ids_to_unified_slot_ids[str(idx)] = str(unified_idx)
      return bio_slot_ids_to_unified_slot_ids, unified_slots
  
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 5 for calling the DialogueAssistantDataProcessor obj's underlying member method code with example usage: obj.map_bio_format_slots_to_unified_slots(slots) and returns: bio_slot_ids_to_unified_slot_ids,  unified_slots