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)
segment the raw text into paragraphs
dataset/ETHPy150Open ceteri/exsto/exsto.py/split_grafs