Traceback (most recent call last):


 "D:\python\python install\helpers\pydev\pydev_run_in_console.py", line 53, in run_file

pydev_imports.execfile(file, globals, locals)
# execute the script


 "D:\python\python install\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile

exec(compile(contents+"\n", file, 'exec'), glob, loc)


 "G:/pythonDevelop/Extraction/NER_IDCNN_CRF/main.py", line 228, in <module>

tf.app.run(main)


 "G:\pythonDevelop\venv1\lib\site-packages\tensorflow\python\platform\app.py", line 125, in run

_sys.exit(main(argv))


 "G:/pythonDevelop/Extraction/NER_IDCNN_CRF/main.py", line 222, in main

train()


 "G:/pythonDevelop/Extraction/NER_IDCNN_CRF/main.py", line 153, in train

train_manager = BatchManager(train_data, FLAGS.batch_size)


 "G:/pythonDevelop/Extraction/NER_IDCNN_CRF\data_utils.py", line 285, in __init__

self.batch_data = self.sort_and_pad(data, batch_size)


 "G:/pythonDevelop/Extraction/NER_IDCNN_CRF\data_utils.py", line 293, in sort_and_pad

batch_data.append(self.pad_data(sorted_data[i*batch_size : (i+1)*batch_size]))
TypeError: slice indices must be integers or None or have an __index__ method

Traceback (most recent call last):



 "/registry.py", line 413, in <module>


main_loop(args)



 "/registry.py", line 404, in main_loop


tags_list_to_delete = tags_list[:-keep_last_versions]

TypeError: 'set' object has no attribute '__getitem__'

