class_docstr: Normalize source and target based on Moses script.
class_docstr_tok: ["Normalize","source","and","target","based","on","Moses","script","."]
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/Normalize")
      group.add(
          "--src_lang",
          "-src_lang",
          type=str,
          default="",
          help="Source language code",
      )
      group.add(
          "--tgt_lang",
          "-tgt_lang",
          type=str,
          default="",
          help="Target language code",
      )
      group.add(
          "--penn",
          "-penn",
          type=bool,
          default=True,
          help="Penn substitution",
      )
      group.add(
          "--norm_quote_commas",
          "-norm_quote_commas",
          type=bool,
          default=True,
          help="Normalize quotations and commas",
      )
      group.add(
          "--norm_numbers",
          "-norm_numbers",
          type=bool,
          default=True,
          help="Normalize numbers",
      )
      group.add(
          "--pre_replace_unicode_punct",
          "-pre_replace_unicode_punct",
          type=bool,
          default=False,
          help="Replace unicode punct",
      )
      group.add(
          "--post_remove_control_chars",
          "-post_remove_control_chars",
          type=bool,
          default=False,
          help="Remove control chars",
      )
  
imports: from onmt.utils.logging import logger
  import re
  import regex
  from itertools import chain
  from onmt.transforms import register_transform
  from .transform import Transform
label_desc: Use image node_id 2 for calling the NormalizeTransform obj's underlying member method code with example usage: obj.add_options(cls, parser) without return types