kentonl / e2e-coref

End-to-end Neural Coreference Resolution
Apache License 2.0
518 stars 174 forks source link

KeyError: 'bc/cctv/00/cctv_0000_1' #92

Open liyaoshigehaoren opened 4 years ago

liyaoshigehaoren commented 4 years ago

Traceback (most recent call last): File "train.py", line 53, in if tf_global_step % eval_frequency == 0: File "/home/liyao/demo/e2e-coref-master/coref_model.py", line 560, in evaluate conll_results = conll.evaluate_conll(self.config["conll_eval_path"], coref_predictions, official_stdout) File "/home/liyao/demo/e2e-coref-master/conll.py", line 97, in evaluate_conll output_conll(gold_file, prediction_file, predictions) File "/home/liyao/demo/e2e-coref-master/conll.py", line 48, in output_conll start_map, end_map, word_map = prediction_map[doc_key] KeyError: 'bc/cctv/00/cctv_0000_1'

gaoya-J commented 3 years ago

I have the simple problem,have you solve it???

gaoya-J commented 3 years ago

Traceback (most recent call last): File "train.py", line 55, in eval_summary, eval_f1 = model.evaluate(session) File "/home/tomtop5/e2e-coref-master/coref_model.py", line 563, in evaluate conll_results = conll.evaluate_conll(self.config["conll_eval_path"], coref_predictions, official_stdout) File "/home/tomtop5/e2e-coref-master/conll.py", line 97, in evaluate_conll output_conll(gold_file, prediction_file, predictions) File "/home/tomtop5/e2e-coref-master/conll.py", line 48, in output_conll start_map, end_map, word_map = prediction_map[doc_key] KeyError: 'wb/eng/00/eng_0009_0'