class_docstr: Task for training speech recognition model.
class_docstr_tok: ["Task","for","training","speech","recognition","model","."]
docstr: Add task-specific arguments to the parser.
docstr_tok: ["Add","task-specific","arguments","to","the","parser","."]
code: def add_args(parser):
      """Add task-specific arguments to the parser."""
      parser.add_argument("data", help="path to data directory")
      parser.add_argument(
          "--silence-token",
          default="\u2581",
          help="token for silence (used by w2l)",
      )
      parser.add_argument(
          "--max-source-positions",
          default=sys.maxsize,
          type=int,
          metavar="N",
          help="max number of frames in the source sequence",
      )
      parser.add_argument(
          "--max-target-positions",
          default=1024,
          type=int,
          metavar="N",
          help="max number of tokens in the target sequence",
      )
  
file_path: fairseq/examples/speech_recognition/tasks/speech_recognition.py
imports: import json
  import os
  import re
  import sys
  import torch
  from examples.speech_recognition.data import AsrDataset
  from examples.speech_recognition.data.replabels import replabel_symbol
  from fairseq.data import Dictionary
  from fairseq.tasks import LegacyFairseqTask, register_task
label_desc: Use image node_id 1 for calling the SpeechRecognitionTask obj's underlying member method code with example usage: obj.add_args(parser) without return types