code: def segment_text(text, seg_regex=SEG_REGEX):
      
      for m in seg_regex.finditer(text):
          yield m.group(0)
docs: Return an iterator of segments in the text.
  
      Args:
          text (unicode): string of IPA Unicode text
          seg_regex (_regex.Pattern): compiled regex defining a segment (base +
                                      modifiers)
  
      Return:
          generator: segments in the input text