code: def train_sentence_tokenizer(self: object, text: str):
          
          language_punkt_vars = PunktLanguageVars
  
          # Set punctuation
          if self.punctuation:
              if self.strict:
                  language_punkt_vars.sent_end_chars = self.punctuation + self.strict_punctuation
              else:
                  language_punkt_vars.sent_end_chars = self.punctuation
  
          # Set abbreviations
          trainer = PunktTrainer(text, language_punkt_vars)
          trainer.INCLUDE_ALL_COLLOCS = True
          trainer.INCLUDE_ABBREV_COLLOCS = True
  
          tokenizer = PunktSentenceTokenizer(trainer.get_params())
  
          if self.abbreviations:
              for abbreviation in self.abbreviations:
                  tokenizer._params.abbrev_types.add(abbreviation)
  
          return tokenizer
docs: Train sentence tokenizer.