class_docstr: replace the target word with its synonym in wordnet
docstr: :param replacement_type: case type, only support
      ['syn']
code: def __init__(self, replacement_type="syn", **kwargs):
      r"""
      :param replacement_type: case type, only support
          ['syn']
      """
      super().__init__()
      if replacement_type not in ["syn"]:
          raise ValueError(
              "Not support {0} type, plz ensure replacement_type in {1}".format(
                  replacement_type, ["syn"]
              )
          )
      self.replacement_type = replacement_type
  
file_path: textflint/textflint/generation/transformation/WSD/swap_target.py
imports: import random
  from ...transformation import Transformation
  from ....input.component.sample.wsd_sample import WSDSample
  from nltk.corpus import wordnet
label_desc: Use image node_id 1 to create a new SwapTarget object from inherited base classes: Transformation with example: obj = SwapTarget(replacement_type)