class_docstr: Handle punctuations in text.
  
  Just strip punctuations from text or strip and restore them later.
  
  Args:
      puncs (str): The punctuations to be processed. Defaults to `_DEF_PUNCS`.
  
  Example:
      >>> punc = Punctuation()
      >>> punc.strip("This is. example !")
      'This is example'
  
      >>> text_striped, punc_map = punc.strip_to_restore("This is. example !")
      >>> ' '.join(text_striped)
      'This is example'
  
      >>> text_restored = punc.restore(text_striped, punc_map)
      >>> text_restored[0]
      'This is. example !'
docstr: Restore punctuation in a text.
  
  Args:
      text (str): The text to be processed.
      puncs (List[str]): The list of punctuations map to be used for restoring.
  
  Examples ::
  
      ['This is', 'example'], ['.', '!'] -> "This is. example!"
docstr_tok: ["Restore","punctuation","in","a","text",".","Args",":","text","(","str",")",":","The","text","to","be","processed",".","puncs","(","List","[","str","]",")",":","The","list","of","punctuations","map","to","be","used","for","restoring",".","Examples",":",":","[","'This","is","'",",","'example","'","]",",","[","'",".","'",",","'","!","'","]","-",">","``","This","is",".","example","!","''"]
code: def restore(cls, text, puncs):
      """Restore punctuation in a text.
  
      Args:
          text (str): The text to be processed.
          puncs (List[str]): The list of punctuations map to be used for restoring.
  
      Examples ::
  
          ['This is', 'example'], ['.', '!'] -> "This is. example!"
  
      """
      return cls._restore(text, puncs)
  
file_path: TTS/TTS/tts/utils/text/punctuation.py
imports: import collections
  import re
  from enum import Enum
  import six
label_desc: Use image node_id 8 for calling the Punctuation obj's underlying member method code with example usage: obj.restore(cls, text, puncs) and returns: cls