class_docstr: Dependency Parsing Generator aims to
  apply Dependency Parsing data generation function.
class_docstr_tok: ["Dependency","Parsing","Generator","aims","to","apply","Dependency","Parsing","data","generation","function","."]
code: def __init__(
      self,
      task="DP",
      max_trans=1,
      fields="x",
      trans_methods=None,
      trans_config=None,
      return_unk=True,
      sub_methods=None,
      sub_config=None,
      attack_methods=None,
      validate_methods=None,
      **kwargs,
  ):
      super().__init__(
          task=task,
          max_trans=max_trans,
          fields=fields,
          trans_methods=trans_methods,
          trans_config=trans_config,
          return_unk=return_unk,
          sub_methods=sub_methods,
          sub_config=sub_config,
          attack_methods=attack_methods,
          validate_methods=validate_methods,
          **kwargs,
      )
  
imports: from .generator import Generator
  from ...input.component.sample.dp_sample import DPSample
label_desc: Use image node_id 1 to create a new DPGenerator object from inherited base classes: Generator with example: obj = DPGenerator(task, max_trans, fields, trans_methods, trans_config, return_unk, sub_methods, sub_config, attack_methods, validate_methods)