def abstracts(soup):
abstracts = []<EOL>abstract_tags = raw_parser.abstract(soup)<EOL>for tag in abstract_tags:<EOL><INDENT>abstract = {}<EOL>abstract["<STR_LIT>"] = tag.get("<STR_LIT>")<EOL>title_tag = raw_parser.title(tag)<EOL>if title_tag:<EOL><INDENT>abstract["<STR_LIT:title>"] = node_text(title_tag)<EOL><DEDENT>abstract["<STR_LIT:content>"] = None<EOL>if raw_parser.paragraph(tag):<EOL><INDENT>abstract["<STR_LIT:content>"] = "<STR_LIT>"<EOL>abstract["<STR_LIT>"] = "<STR_LIT>"<EOL>good_paragraphs = remove_doi_paragraph(raw_parser.paragraph(tag))<EOL>glue = "<STR_LIT>"<EOL>for p_tag in good_paragraphs:<EOL><INDENT>abstract["<STR_LIT:content>"] += glue + node_text(p_tag)<EOL>glue = "<STR_LIT:U+0020>"<EOL><DEDENT>for p_tag in good_paragraphs:<EOL><INDENT>abstract["<STR_LIT>"] += '<STR_LIT>' + node_contents_str(p_tag) + '<STR_LIT>'<EOL><DEDENT><DEDENT>abstracts.append(abstract)<EOL><DEDENT>return abstracts<EOL>
Find the article abstract and format it