code: def split_grafs(lines: typing.List[str]) -> typing.Iterator[str]:
      """
      Segments a raw text, given as a list of lines, into paragraphs.
  
          lines:
      the raw text document, split into a lists of lines
  
          yields:
      text per paragraph
      """
      graf: typing.List[str] = []
  
      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)
  
file_path: pytextrank/pytextrank/util.py
imports: import itertools
  import re
  import string
  import typing
  import unicodedata
  from spacy.tokens import Span
label_desc: Use image node_id 4 for calling a global function with example usage: split_grafs(lines) without return types