def __str__(self):
lines = []<EOL>for i in range(len(self.nodes)):<EOL><INDENT>lines.append("<STR_LIT>"+ str(i) + "<STR_LIT:U+0020>" + self.nodes[i])<EOL>lines.append("<STR_LIT>" + self.node_values[i])<EOL>lines.append("<STR_LIT>")<EOL>for relation in self.relations[i]:<EOL><INDENT>lines.append("<STR_LIT>" + relation[<NUM_LIT:1>] + "<STR_LIT>" + relation[<NUM_LIT:0>])<EOL><DEDENT>for attribute in self.attributes[i]:<EOL><INDENT>lines.append("<STR_LIT>" + attribute[<NUM_LIT:0>] + "<STR_LIT>" + attribute[<NUM_LIT:1>])<EOL><DEDENT><DEDENT>return "<STR_LIT:\n>".join(lines)<EOL>
Generate AMR string for better readability