class_docstr: OpenNMT Tokenizer transform class.
docstr: Extra checks for OpenNMT Tokenizer options.
docstr_tok: ["Extra","checks","for","OpenNMT","Tokenizer","options","."]
code: def _validate_options(cls, opts):
      """Extra checks for OpenNMT Tokenizer options."""
      super()._validate_options(opts)
      src_kwargs_dict = eval(opts.src_onmttok_kwargs)
      tgt_kwargs_dict = eval(opts.tgt_onmttok_kwargs)
      if not isinstance(src_kwargs_dict, dict):
          raise ValueError(
              "-src_onmttok_kwargs isn't a dict valid string."
          )
      if not isinstance(tgt_kwargs_dict, dict):
          raise ValueError(
              "-tgt_onmttok_kwargs isn't a dict valid string."
          )
      opts.src_onmttok_kwargs = src_kwargs_dict
      opts.tgt_onmttok_kwargs = tgt_kwargs_dict
  
imports: import re
  from onmt.utils.logging import logger
  from onmt.transforms import register_transform
  from .transform import Transform, ObservableStats
  from onmt.constants import DefaultTokens
label_desc: Use image node_id 4 for calling the ONMTTokenizerTransform obj's underlying member method code with example usage: obj._validate_options(cls, opts) without return types