class_docstr: Sentence Splitter using SegTok.
  
  Implementation of :class:`SentenceSplitter` using the SegTok library.
  
  For further details see: https://github.com/fnl/segtok
class_docstr_tok: ["Sentence","Splitter","using","SegTok",".","Implementation","of",":","class",":","`","SentenceSplitter","`","using","the","SegTok","library",".","For","further","details","see",":","https",":","\/\/github.com\/fnl\/segtok"]
code: def split(self, text: str) -> List[Sentence]:
      plain_sentences: List[str] = split_multi(text)
      sentence_offset = 0
  
      sentences: List[Sentence] = []
      for sentence in plain_sentences:
          try:
              sentence_offset = text.index(sentence, sentence_offset)
          except ValueError as error:
              raise AssertionError(
                  f"Can't find the sentence offset for sentence {sentence} "
                  f"starting from position {sentence_offset}"
              ) from error
          sentences.append(
              Sentence(
                  text=sentence,
                  use_tokenizer=self._tokenizer,
                  start_position=sentence_offset,
              )
          )
  
          sentence_offset += len(sentence)
  
      return sentences
  
imports: from abc import ABC, abstractmethod
  from typing import Any, List, Optional, Union
  from segtok.segmenter import split_multi
  from flair.data import Sentence
  from flair.tokenization import SciSpacyTokenizer, SegtokTokenizer, SpacyTokenizer, Tokenizer
label_desc: Use image node_id 2 for calling the SegtokSentenceSplitter obj's underlying member method code with example usage: obj.split(text) and returns: sentences