class_docstr: Base class for regex sentences tokenization.
class_docstr_tok: ["Base","class","for","regex","sentences","tokenization","."]
docstr: Constructor.
  
  :param language: language for sentences tokenization
  :type language: str
  :param sent_end_chars: list of sentences-ending punctuation marks
  :type sent_end_chars: list
docstr_tok: ["Constructor",".",":","param","language",":","language","for","sentences","tokenization",":","type","language",":","str",":","param","sent_end_chars",":","list","of","sentences-ending","punctuation","marks",":","type","sent_end_chars",":","list"]
code: def __init__(
      self, language: str = None, sent_end_chars: List[str] = None
  ):
      """Constructor.
  
      :param language: language for sentences tokenization
      :type language: str
      :param sent_end_chars: list of sentences-ending punctuation marks
      :type sent_end_chars: list
      """
      super().__init__(language)
      if sent_end_chars:
          self.sent_end_chars = sent_end_chars
          self.sent_end_chars_regex = "|".join(self.sent_end_chars)
          self.pattern = rf"(?<=[{self.sent_end_chars_regex}])\s"
      else:
          raise Exception("Must specify sent_end_chars")
  
file_path: cltk/src/cltk/sentence/sentence.py
imports: import os
  import re
  from abc import ABC, abstractmethod
  from typing import List
  from nltk.tokenize.punkt import PunktSentenceTokenizer
  from cltk.core import CLTKException
  from cltk.utils import CLTK_DATA_DIR
  from cltk.utils.file_operations import open_pickle
label_desc: Use image node_id 1 to create a new RegexSentenceTokenizer object from inherited base classes: SentenceTokenizer with example: obj = RegexSentenceTokenizer(language, sent_end_chars)