SRL模型https://github.com/luheng/deep_srl

时间:2019-04-18 13:37:58

标签: python assertion

我正在运行deep_srl模型(github),但收到了他的错误:

回溯(最近通话最近一次):

File "python/predict.py", line 227, in <module>
evaluator.evaluate(predictions)
File "/home/ubuntu/deep_srl-master/python/neural_srl/shared/evaluation.py", line 26, in evaluate
self.compute_accuracy(predictions)
File "/home/ubuntu/deep_srl-master/python/neural_srl/shared/evaluation.py", line 97, in compute_accuracy
print_to_conll(self.pred_labels, self.pred_props_file, temp_output)
File "/home/ubuntu/deep_srl-master/python/neural_srl/shared/conll_utils.py", line 45, in print_to_conll
print_sentence_to_conll(fout, tokens_buf, pred_labels[seq_ptr:seq_ptr+num_props_for_sentence])
File "/home/ubuntu/deep_srl-master/python/neural_srl/shared/conll_utils.py", line 26, in print_sentence_to_conll
assert len(label_column) == len(tokens)
AssertionError

有人知道如何解决此问题吗?

0 个答案:

没有答案