class_docstr: Generate extra text for AbsaAddDiff,
  and dataset type is assigned in configure.
code: def __init__(
      self,
      task="ABSA",
      fields="sentence",
      max_trans=1,
      trans_methods=None,
      trans_config=None,
      return_unk=True,
      sub_methods=None,
      sub_config=None,
      attack_methods=None,
      validate_methods=None,
      dataset_config="restaurant",
      **kwargs,
  ):
      self.dataset_config = dataset_config
      self.nlp = Transformation.processor.nlp
      self.extra_text = []
      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,
      )
      self.transform_methods = trans_methods
      if self.dataset_config is None:
          logger.info(
              "******No config of dataset is available for AddDiff!******"
          )
          if "AddDiff" in ALLOWED_TRANSFORMATIONS["ABSA"]:
              ALLOWED_TRANSFORMATIONS["ABSA"].remove("AddDiff")
      else:
          if (
              "AddDiff" in trans_methods
              and self.dataset_config == "restaurant"
          ):
              self.examples = absa_dict_loader(
                  download_if_needed(ABSA_TRAIN_RESTAURANT_PATH)
              )
              self.extra_text = self.get_extra_text()
          else:
              for transform_method in trans_methods:
                  if (
                      "AddDiff" in transform_method
                      and self.dataset_config == "laptop"
                  ):
                      self.examples = absa_dict_loader(
                          download_if_needed(ABSA_TRAIN_LAPTOP_PATH)
                      )
                      self.extra_text = self.get_extra_text()
                      break
  
file_path: textflint/textflint/generation/generator/absa_generator.py
imports: from tqdm import tqdm
  from .generator import Generator
  from ...common.utils.logger import logger
  from ...input.component.sample import ABSASample
  from ..transformation.transformation import Transformation
  from ...common.utils.load import absa_dict_loader
  from ...common.utils.install import download_if_needed
  from ...common.settings import TASK_TRANSFORMATION_PATH, ALLOWED_TRANSFORMATIONS, TASK_SUBPOPULATION_PATH, ALLOWED_SUBPOPULATIONS, ABSA_TRAIN_RESTAURANT_PATH, ABSA_TRAIN_LAPTOP_PATH
label_desc: Use image node_id 1 to create a new ABSAGenerator object from inherited base classes: Generator with example: obj = ABSAGenerator(task, fields, max_trans, trans_methods, trans_config, return_unk, sub_methods, sub_config, attack_methods, validate_methods, dataset_config)