class_docstr: Class for regex-based word tokenization
class_docstr_tok: ["Class","for","regex-based","word","tokenization"]
docstr: :param language : language for sentences tokenization
  :type language: str
  :param patterns: regex patterns for word tokenization
  :type patterns: list of strings
docstr_tok: [":","param","language",":","language","for","sentences","tokenization",":","type","language",":","str",":","param","patterns",":","regex","patterns","for","word","tokenization",":","type","patterns",":","list","of","strings"]
code: def __init__(self, patterns: List[str] = None):
      """
      :param language : language for sentences tokenization
      :type language: str
      :param patterns: regex patterns for word tokenization
      :type patterns: list of strings
      """
      self.patterns = patterns
  
imports: import logging
  import re
  from abc import abstractmethod
  from typing import List
  from nltk.tokenize import TreebankWordTokenizer
  from nltk.tokenize.punkt import PunktParameters, PunktSentenceTokenizer
label_desc: Use image node_id 1 to create a new RegexWordTokenizer object from inherited base classes: WordTokenizer with example: obj = RegexWordTokenizer(patterns)