code: def split_grafs (lines):
      
      graf = []
  
      for line in lines:
          line = line.strip()
  
          if len(line) < 1:
              if len(graf) > 0:
                  yield "\n".join(graf)
                  graf = []
          else:
              graf.append(line)
  
      if len(graf) > 0:
          yield "\n".join(graf)
docs: segment the raw text into paragraphs