Key Error on Sentence Classification example
I was trying to run the sentence classification example step by step but there is a keyerror happened at very beginning as following:
INFO:tensorflow:Writing example 0 of 3669
Traceback (most recent call last):
File "run_classifier.py", line 908, in
Oops, I introduced a bug this morning. I just fixed it now.
@jacobdevlin-google thanks
@jacobdevlin-google thanks
so how did u solve it in the end??
Oops, I introduced a bug this morning. I just fixed it now.
I have pulled the lastest version (i.e. 21 days ago with self-written processors,)seems this kind of error happens again
Seems there is some bug on line 489 of run_classifier.py. I added a tab before features and everything is fine
I've tried adding the tab at line 489 but it doesn't fix the error, any suggestions? thanks :)
well, this tab does not help. could u show your data and data processor??
I've tried adding the tab at line 489 but it doesn't fix the error, any suggestions? thanks :)
You need to hide the row index from your data frame in time of saving to tsv. It could be df.to_csv('train.tsv', sep='\t', index=False, header=False)