def parse_doc (json_iter):
global DEBUG<EOL>for meta in json_iter:<EOL><INDENT>base_idx = <NUM_LIT:0><EOL>for graf_text in filter_quotes(meta["<STR_LIT:text>"], is_email=False):<EOL><INDENT>if DEBUG:<EOL><INDENT>print("<STR_LIT>", graf_text)<EOL><DEDENT>grafs, new_base_idx = parse_graf(meta["<STR_LIT:id>"], graf_text, base_idx)<EOL>base_idx = new_base_idx<EOL>for graf in grafs:<EOL><INDENT>yield graf<EOL><DEDENT><DEDENT><DEDENT>
parse one document to prep for TextRank