code: def split_turns(s, splitter=re.compile('__eot__')):
      
      for utterance in splitter.split(s):
          utterance = utterance.replace('__eou__', '\n')
          utterance = utterance.replace('__eot__', '')
          if len(utterance.strip()):
              yield utterance
docs: Split a string on __eot__ markders (turns)