` body = 'body'.encode('utf8')
title = 'title'.encode('utf8')
tf_example = example_pb2.Example()
tf_example.features.feature['article'].bytes_list.value.extend([body])
tf_example.features.feature['abstract'].bytes_list.value.extend([title])
tf_example_str = tf_example.SerializeToString()
print(tf_example_str)`
Is the output correct?
b'\n,\n\x13\n\x07article\x12\x08\n\x06\n\x04body\n\x15\n\x08abstract\x12\t\n\x07\n\x05title'
thx!
` body = 'body'.encode('utf8')
title = 'title'.encode('utf8')
tf_example = example_pb2.Example()
tf_example.features.feature['article'].bytes_list.value.extend([body])
tf_example.features.feature['abstract'].bytes_list.value.extend([title])
tf_example_str = tf_example.SerializeToString()
print(tf_example_str)`
Is the output correct?
b'\n,\n\x13\n\x07article\x12\x08\n\x06\n\x04body\n\x15\n\x08abstract\x12\t\n\x07\n\x05title'
thx!