class_docstr: Remove all combining characters like diacritical marks from tokens
  
  Args:
      diacritical: whether to remove diacritical signs or not
          diacritical signs are something like hats and stress marks
      nums: whether to replace all digits with 1 or not
class_docstr_tok: ["Remove","all","combining","characters","like","diacritical","marks","from","tokens","Args",":","diacritical",":","whether","to","remove","diacritical","signs","or","not","diacritical","signs","are","something","like","hats","and","stress","marks","nums",":","whether","to","replace","all","digits","with","1","or","not"]
code: def __init__(
      self,
      diacritical: bool = True,
      nums: bool = False,
      *args,
      **kwargs,
  ) -> None:
      self.diacritical = diacritical
      self.nums = nums
      self.combining_characters = dict.fromkeys(
          [
              c
              for c in range(sys.maxunicode)
              if unicodedata.combining(chr(c))
          ]
      )
  
file_path: DeepPavlov/deeppavlov/models/preprocessors/sanitizer.py
imports: import re
  import sys
  import unicodedata
  from deeppavlov.core.common.registry import register
  from deeppavlov.core.models.component import Component
label_desc: Use image node_id 1 to create a new Sanitizer object from inherited base classes: Component with example: obj = Sanitizer(diacritical, nums)