class_docstr: Base class to segment text.
code: def transform(self, sequence):
      seq = Sequence(sequence.text)
      seq.idx = [0]
      for segment in sequence:
          offset = seq.idx[-1]
          self.breaker.setText(segment)
          seq.idx.extend([offset + x for x in self.breaker])
      return seq
  
file_path: polyglot/polyglot/tokenize/base.py
imports: from icu import Locale, BreakIterator
  from polyglot.base import Sequence
label_desc: Use image node_id 2 for calling the Breaker obj's underlying member method code with example usage: obj.transform(sequence) and returns: seq