class_docstr: Class for regex-based word tokenization
class_docstr_tok: ["Class","for","regex-based","word","tokenization"]
docstr: :rtype: list
  :param text: text to be tokenized into sentences
  :type text: str
  :param model: tokenizer object to used # Should be in init?
  :type model
docstr_tok: [":","rtype",":","list",":","param","text",":","text","to","be","tokenized","into","sentences",":","type","text",":","str",":","param","model",":","tokenizer","object","to","used","#","Should","be","in","init","?",":","type","model"]
code: def tokenize(self, text: str):
      """
      :rtype: list
      :param text: text to be tokenized into sentences
      :type text: str
      :param model: tokenizer object to used # Should be in init?
      :type model
      """
      for pattern in self.patterns:
          text = re.sub(pattern[0], pattern[1], text)
      return text.split()
  
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 2 for calling the RegexWordTokenizer obj's underlying member method code with example usage: obj.tokenize(text) and returns: text