class_docstr: Transforms an input by change its sentiment extent by adding adverb
  
  Example::
  
      ori: 卫生间不错，好用
      trans: 卫生间比较不错，有点好用
docstr: Transform text string according field, this kind of transformation
  can only produce one sample.
  
  :param ~SASample sample: input data, a SASample contains 'x' field
      and 'y' field
  :param int n: number of generated samples, this transformation can
      only generate one sample
  :return list trans_samples: transformed sample list that only contain
      one sample
docstr_tok: ["Transform","text","string","according","field",",","this","kind","of","transformation","can","only","produce","one","sample",".",":","param","~SASample","sample",":","input","data",",","a","SASample","contains","'","x","'","field","and","'","y","'","field",":","param","int","n",":","number","of","generated","samples",",","this","transformation","can","only","generate","one","sample",":","return","list","trans_samples",":","transformed","sample","list","that","only","contain","one","sample"]
code: def _transform(self, sample, n=1, **kwargs):
      r"""
      Transform text string according field, this kind of transformation
      can only produce one sample.
  
      :param ~SASample sample: input data, a SASample contains 'x' field
          and 'y' field
      :param int n: number of generated samples, this transformation can
          only generate one sample
      :return list trans_samples: transformed sample list that only contain
          one sample
  
      """
      tags = sample.get_pos("x")
      a_tags = [tag for tag in tags if tag[0] == "a"]
      if not a_tags:
          return []
  
      a_tags.sort(key=lambda x: x[1], reverse=True)
      for a_tag in a_tags:
          _, f_loc, _ = a_tag
          adverb = choice(self.extent_list)
          sample = sample.insert_field_before_index("x", f_loc, adverb)
  
      return [sample]
  
file_path: textflint/textflint/generation/transformation/SACN/Extent_Adjust.py
imports: from ..transformation import Transformation
  from ....common.settings import CNSA_EXTENT_LIST
  from random import choice
label_desc: Use image node_id 3 for calling the ExtentAdjust obj's underlying member method code with example usage: obj._transform(sample, n) and returns: list, list