class_docstr: Generate some samples by templates which implement follow
      Right for the Wrong Reasons: Diagnosing Syntactic Heuristics in Natural
      Language Inference ACL2019
  
     In order to generate some sample whose premise is the sequence of the
     hypothesis but the semantic are different.
  
  Exmaple::
  
     {
          sentence1: I hope Tom can go to school.
          sentence2: Tom go to school.
          y: 0
     }
class_docstr_tok: ["Generate","some","samples","by","templates","which","implement","follow","Right","for","the","Wrong","Reasons",":","Diagnosing","Syntactic","Heuristics","in","Natural","Language","Inference","ACL2019","In","order","to","generate","some","sample","whose","premise","is","the","sequence","of","the","hypothesis","but","the","semantic","are","different",".","Exmaple",":",":","{","sentence1",":","I","hope","Tom","can","go","to","school",".","sentence2",":","Tom","go","to","school",".","y",":","0","}"]
docstr: Transform data sample to a list of Sample.
  
  :param ~SMSample sample: Data sample for augmentation
  :param int n: Default is 1. MAX number of unique augmented output
  :param **kwargs:
  :return: Augmented data
docstr_tok: ["Transform","data","sample","to","a","list","of","Sample",".",":","param","~SMSample","sample",":","Data","sample","for","augmentation",":","param","int","n",":","Default","is","1",".","MAX","number","of","unique","augmented","output",":","param","*","*","kwargs",":",":","return",":","Augmented","data"]
code: def transform(self, sample, n=1, **kwargs):
      r"""
      Transform data sample to a list of Sample.
  
      :param ~SMSample sample: Data sample for augmentation
      :param int n: Default is 1. MAX number of unique augmented output
      :param **kwargs:
      :return: Augmented data
  
      """
      transform_results = self._transform(n, **kwargs)
  
      if transform_results:
          return transform_results
      else:
          return []
  
file_path: textflint/textflint/generation/transformation/SM/overlap.py
imports: from ..transformation import Transformation
  from ....common.utils.overlap_templates import *
  from ....input.component.sample import SMSample
label_desc: Use image node_id 3 for calling the Overlap obj's underlying member method code with example usage: obj.transform(sample, n) and returns: transform_results, list