class_docstr: Clean examples according to rules
docstr: Add an option for the corpus ratio to apply this transform.
docstr_tok: ["Add","an","option","for","the","corpus","ratio","to","apply","this","transform","."]
code: def add_options(cls, parser):
      """Add an option for the corpus ratio to apply this transform."""
  
      group = parser.add_argument_group("Transform/Clean")
      group.add(
          "--src_eq_tgt",
          "-src_eq_tgt",
          action="store_true",
          help="Remove ex src==tgt",
      )
      group.add(
          "--same_char",
          "-same_char",
          action="store_true",
          help="Remove ex with same char more than 4 times",
      )
      group.add(
          "--same_word",
          "-same_word",
          action="store_true",
          help="Remove ex with same word more than 3 times",
      )
      group.add(
          "--scripts_ok",
          "-scripts_ok",
          default=["Latin", "Common"],
          nargs="*",
          type=str,
          help="list of unicodata scripts accepted",
      )
      group.add(
          "--scripts_nok",
          "-scripts_nok",
          default=[],
          nargs="*",
          type=str,
          help="list of unicodata scripts not accepted",
      )
  
      group.add(
          "--src_tgt_ratio",
          "-src_tgt_ratio",
          type=float,
          default=2,
          help="ratio between src and tgt",
      )
      group.add(
          "--avg_tok_min",
          "-avg_tok_min",
          type=float,
          default=3,
          help="average length of tokens min",
      )
      group.add(
          "--avg_tok_max",
          "-avg_tok_max",
          type=float,
          default=20,
          help="average length of tokens max",
      )
      group.add(
          "--langid",
          "-langid",
          default=[],
          nargs="*",
          type=str,
          help="list of languages accepted",
      )
  
file_path: OpenNMT-py/onmt/transforms/clean.py
imports: from onmt.transforms import register_transform
  from .transform import Transform
  from onmt.utils.logging import logger
  import fasttext
  import os
  import urllib.request
  import regex
label_desc: Use image node_id 2 for calling the CleanTransform obj's underlying member method code with example usage: obj.add_options(cls, parser) without return types