def process_set(line, annotations):
matches = re.match('<STR_LIT>', line)<EOL>key = None<EOL>if matches:<EOL><INDENT>key = matches.group(<NUM_LIT:1>)<EOL>val = matches.group(<NUM_LIT:2>)<EOL><DEDENT>if key == "<STR_LIT>":<EOL><INDENT>annotations["<STR_LIT>"] = val<EOL><DEDENT>elif key == "<STR_LIT>":<EOL><INDENT>annotations["<STR_LIT>"] = process_citation(val)<EOL><DEDENT>elif key.lower() == "<STR_LIT>" or key.lower() == "<STR_LIT>":<EOL><INDENT>annotations["<STR_LIT>"] = val<EOL><DEDENT>elif re.match("<STR_LIT>", val):<EOL><INDENT>vals = convert_csv_str_to_list(val)<EOL>annotations[key] = vals<EOL><DEDENT>else:<EOL><INDENT>annotations[key] = val<EOL><DEDENT>return annotations<EOL>
Convert annotations into nanopub_bel annotations format