code: def tokenize(self, text: str, model: object = None):
          
          sentences = re.split(self.pattern, text)
          return sentences
docs: Method for tokenizing sentences with regular expressions.
  
          :rtype: list
          :param text: text to be tokenized into sentences
          :type text: str