class_docstr: This module provides access to data in the ParlAI Text Dialog format.
  
  See core/teachers.py for more info about the format.
class_docstr_tok: ["This","module","provides","access","to","data","in","the","ParlAI","Text","Dialog","format",".","See","core\/teachers.py","for","more","info","about","the","format","."]
code: def add_cmdline_args(
      cls, parser: ParlaiParser, partial_opt: Optional[Opt] = None
  ) -> ParlaiParser:
      super().add_cmdline_args(parser, partial_opt)
      agent = parser.add_argument_group("FromFile Task Arguments")
      agent.add_argument(
          "-ffdp", "--fromfile-datapath", type=str, help="Data file"
      )
      agent.add_argument(
          "-ffdt",
          "--fromfile-datatype-extension",
          type="bool",
          default=False,
          help="If true, use _train.txt, _valid.txt, _test.txt file extensions",
      )
      return parser
  
imports: from typing import Optional
  from parlai.core.params import ParlaiParser
  from parlai.core.opt import Opt
  import copy
  import os
  import parlai.utils.logging
  from parlai.core.teachers import FbDeprecatedDialogTeacher, ParlAIDialogTeacher
label_desc: Use image node_id 1 for calling the ParlaiformatTeacher obj's underlying member method code with example usage: obj.add_cmdline_args(cls, parser, partial_opt) and returns: parser