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
The first three steps without any problems,I've gone through step four,when I use “python baseline.py --level sent” or “python baseline.py --level bag”,question as follow:
Instructions for updating:
Use tf.cast instead.
Loading train sets
Num of samples - 287351
Loading dev sets
Num of samples - 38417
Epoch - 1
Traceback (most recent call last):
File "baseline.py", line 433, in
tf.app.run()
File "E:\Anaconda\lib\site-packages\tensorflow\python\platform\app.py", line 125, in run
_sys.exit(main(argv))
File "baseline.py", line 429, in main
model.run_model(sess, saver)
File "baseline.py", line 355, in run_model
for batch in train_batchers:
File "baseline.py", line 171, in data_batcher
yield all_sents[idx], all_labels[idx], None
TypeError: list indices must be integers or slices, not list
How should I solve this?thanks
The text was updated successfully, but these errors were encountered:
The first three steps without any problems,I've gone through step four,when I use “python baseline.py --level sent” or “python baseline.py --level bag”,question as follow:
Instructions for updating:
Use tf.cast instead.
Loading train sets
Num of samples - 287351
Loading dev sets
Num of samples - 38417
Epoch - 1
Traceback (most recent call last):
File "baseline.py", line 433, in
tf.app.run()
File "E:\Anaconda\lib\site-packages\tensorflow\python\platform\app.py", line 125, in run
_sys.exit(main(argv))
File "baseline.py", line 429, in main
model.run_model(sess, saver)
File "baseline.py", line 355, in run_model
for batch in train_batchers:
File "baseline.py", line 171, in data_batcher
yield all_sents[idx], all_labels[idx], None
TypeError: list indices must be integers or slices, not list
How should I solve this?thanks
The text was updated successfully, but these errors were encountered: