class_docstr: Transformation that simulate typos error to transform sentence.
  
      https://arxiv.org/pdf/1711.02173.pdf
class_docstr_tok: ["Transformation","that","simulate","typos","error","to","transform","sentence",".","https",":","\/\/arxiv.org\/pdf\/1711.02173.pdf"]
docstr: :param str mode: just support
  ['random', 'replace', 'swap', 'insert', 'delete']
  :param bool skip_first_char: whether skip the first char of target word
  :param bool skip_last_char: whether skip the last char of target word.
  :param **kwargs:
docstr_tok: [":","param","str","mode",":","just","support","[","'random","'",",","'replace","'",",","'swap","'",",","'insert","'",",","'delete","'","]",":","param","bool","skip_first_char",":","whether","skip","the","first","char","of","target","word",":","param","bool","skip_last_char",":","whether","skip","the","last","char","of","target","word",".",":","param","*","*","kwargs",":"]
code: def __init__(
      self,
      mode="random",
      skip_first_char=True,
      skip_last_char=False,
      **kwargs,
  ):
      r"""
      :param str mode: just support
      ['random', 'replace', 'swap', 'insert', 'delete']
      :param bool skip_first_char: whether skip the first char of target word
      :param bool skip_last_char: whether skip the last char of target word.
      :param **kwargs:
      """
      super().__init__()
      self._mode = mode
      self.skip_first_char = skip_first_char
      self.skip_last_char = skip_last_char
  
file_path: textflint/textflint/generation/transformation/NER/ent_typos.py
imports: from ....common.utils.word_op import *
  from ..transformation import Transformation
  from ....common.utils.list_op import trade_off_sub_words
label_desc: Use image node_id 1 to create a new EntTypos object from inherited base classes: Transformation with example: obj = EntTypos(mode, skip_first_char, skip_last_char)