class_docstr: Model for end-to-end speech intent classification and slot filling, which is formulated as a speech-to-sequence task
class_docstr_tok: ["Model","for","end-to-end","speech","intent","classification","and","slot","filling",",","which","is","formulated","as","a","speech-to-sequence","task"]
docstr: Sets up the validation data loader via a Dict-like object.
  
  Args:
      val_data_config: A config that contains the information regarding construction
          of an ASR Training dataset.
  
  Supported Datasets:
      -   :class:`~nemo.collections.asr.data.audio_to_text.AudioToCharDataset`
      -   :class:`~nemo.collections.asr.data.audio_to_text.AudioToBPEDataset`
      -   :class:`~nemo.collections.asr.data.audio_to_text.TarredAudioToCharDataset`
      -   :class:`~nemo.collections.asr.data.audio_to_text.TarredAudioToBPEDataset`
      -   :class:`~nemo.collections.asr.data.audio_to_text_dali.AudioToCharDALIDataset`
docstr_tok: ["Sets","up","the","validation","data","loader","via","a","Dict-like","object",".","Args",":","val_data_config",":","A","config","that","contains","the","information","regarding","construction","of","an","ASR","Training","dataset",".","Supported","Datasets",":","-",":","class",":","`","~nemo.collections.asr.data.audio_to_text.AudioToCharDataset","`","-",":","class",":","`","~nemo.collections.asr.data.audio_to_text.AudioToBPEDataset","`","-",":","class",":","`","~nemo.collections.asr.data.audio_to_text.TarredAudioToCharDataset","`","-",":","class",":","`","~nemo.collections.asr.data.audio_to_text.TarredAudioToBPEDataset","`","-",":","class",":","`","~nemo.collections.asr.data.audio_to_text_dali.AudioToCharDALIDataset","`"]
code: def setup_validation_data(
      self, val_data_config: Optional[Union[DictConfig, Dict]]
  ):
      """
      Sets up the validation data loader via a Dict-like object.
  
      Args:
          val_data_config: A config that contains the information regarding construction
              of an ASR Training dataset.
  
      Supported Datasets:
          -   :class:`~nemo.collections.asr.data.audio_to_text.AudioToCharDataset`
          -   :class:`~nemo.collections.asr.data.audio_to_text.AudioToBPEDataset`
          -   :class:`~nemo.collections.asr.data.audio_to_text.TarredAudioToCharDataset`
          -   :class:`~nemo.collections.asr.data.audio_to_text.TarredAudioToBPEDataset`
          -   :class:`~nemo.collections.asr.data.audio_to_text_dali.AudioToCharDALIDataset`
      """
      if "shuffle" not in val_data_config:
          val_data_config["shuffle"] = False
  
      # preserve config
      self._update_dataset_config(
          dataset_name="validation", config=val_data_config
      )
  
      self._validation_dl = self._setup_dataloader_from_config(
          config=val_data_config
      )
  
imports: import json
  import os
  import tempfile
  from math import ceil
  from typing import Dict, List, Optional, Union
  import torch
  from omegaconf import DictConfig, OmegaConf, open_dict
  from tqdm.auto import tqdm
  from nemo.collections.asr.data import audio_to_text_dataset
  from nemo.collections.asr.data.audio_to_text_dali import DALIOutputs
  from nemo.collections.asr.metrics.wer import WER
  from nemo.collections.asr.models.asr_model import ASRModel, ExportableEncDecModel
  from nemo.collections.asr.parts.mixins import ASRBPEMixin, ASRModuleMixin
  from nemo.collections.asr.parts.preprocessing.perturb import process_augmentations
  from nemo.collections.asr.parts.submodules.ctc_decoding import CTCBPEDecoding, CTCBPEDecodingConfig
  from nemo.collections.asr.parts.utils.slu_utils import SequenceGenerator, SequenceGeneratorConfig, get_seq_mask
  from nemo.collections.common.losses import SmoothedNLLLoss
  from nemo.core.classes.common import PretrainedModelInfo, typecheck
  from nemo.core.neural_types import AudioSignal, LabelsType, LengthsType, LogprobsType, NeuralType, SpectrogramType
  from nemo.utils import logging, model_utils
label_desc: Use image node_id 14 for calling the SLUIntentSlotBPEModel obj's underlying member method code with example usage: obj.setup_validation_data(val_data_config) without return types