You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While I am processing the data by myself in my local machine, I encountered the following issue:
Traceback (most recent call last):
File "make_datafiles.py", line 241, in
write_to_bin(all_test_urls, os.path.join(finished_files_dir, "test.bin"))
File "make_datafiles.py", line 186, in write_to_bin
tf_example.features.feature['article'].bytes_list.value.extend([article])
TypeError: "-lrb- cnn -rrb- -- spirit airlines said thursday it 's sorry that hundreds of passengers had flight has type str, but expected one of: bytes
I indeed modified the code a bit so that I can only process the cnn data (not dm)
but it seems that the above error does not come from my modification.
Can anybody share your insight with this issue?
The text was updated successfully, but these errors were encountered:
While I am processing the data by myself in my local machine, I encountered the following issue:
Traceback (most recent call last):
File "make_datafiles.py", line 241, in
write_to_bin(all_test_urls, os.path.join(finished_files_dir, "test.bin"))
File "make_datafiles.py", line 186, in write_to_bin
tf_example.features.feature['article'].bytes_list.value.extend([article])
TypeError: "-lrb- cnn -rrb- -- spirit airlines said thursday it 's sorry that hundreds of passengers had flight has type str, but expected one of: bytes
I indeed modified the code a bit so that I can only process the cnn data (not dm)
but it seems that the above error does not come from my modification.
Can anybody share your insight with this issue?
The text was updated successfully, but these errors were encountered: