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
你好,我运行run_predicate_classification.py是报错:
Traceback (most recent call last):
File "run_predicate_classification.py", line 812, in
tf.app.run()
File "/root/anaconda3/envs/python367/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 40, in run
_run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
File "/root/anaconda3/envs/python367/lib/python3.6/site-packages/absl/app.py", line 299, in run
_run_main(main, args)
File "/root/anaconda3/envs/python367/lib/python3.6/site-packages/absl/app.py", line 250, in _run_main
sys.exit(main(argv))
File "run_predicate_classification.py", line 690, in main
train_examples, label_list, FLAGS.max_seq_length, tokenizer, train_file)
File "run_predicate_classification.py", line 381, in file_based_convert_examples_to_features
max_seq_length, tokenizer)
File "run_predicate_classification.py", line 343, in convert_single_example
label_ids = _predicate_label_to_id(label_list, label_map)
File "run_predicate_classification.py", line 367, in _predicate_label_to_id
predicate_label_ids[predicate_label_map[label]] = 1
KeyError: ''
请教一下该如何处理?看了之前的issue,没有看懂如何处理
The text was updated successfully, but these errors were encountered:
你好,我运行run_predicate_classification.py是报错:
Traceback (most recent call last):
File "run_predicate_classification.py", line 812, in
tf.app.run()
File "/root/anaconda3/envs/python367/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 40, in run
_run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
File "/root/anaconda3/envs/python367/lib/python3.6/site-packages/absl/app.py", line 299, in run
_run_main(main, args)
File "/root/anaconda3/envs/python367/lib/python3.6/site-packages/absl/app.py", line 250, in _run_main
sys.exit(main(argv))
File "run_predicate_classification.py", line 690, in main
train_examples, label_list, FLAGS.max_seq_length, tokenizer, train_file)
File "run_predicate_classification.py", line 381, in file_based_convert_examples_to_features
max_seq_length, tokenizer)
File "run_predicate_classification.py", line 343, in convert_single_example
label_ids = _predicate_label_to_id(label_list, label_map)
File "run_predicate_classification.py", line 367, in _predicate_label_to_id
predicate_label_ids[predicate_label_map[label]] = 1
KeyError: ''
请教一下该如何处理?看了之前的issue,没有看懂如何处理
The text was updated successfully, but these errors were encountered: