taishan1994 / W2NER_predict

[Unofficial] Predict code for AAAI 2022 paper: Unified Named Entity Recognition as Word-Word Relation Classification
50 stars 6 forks source link

验证和预测阶段报错 #11

Open provenclei opened 1 year ago

provenclei commented 1 year ago

在验证和预测阶段 batch_output_all = np.append(batch_output_all, batch_output, axis=0) pred_label = np.append(pred_label, batch_output, axis=0) 该两句话出错: ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (32,) + inhomogeneous part. 请问该如何解决?

taishan1994 commented 1 year ago

在验证和预测阶段 batch_output_all = np.append(batch_output_all, batch_output, axis=0) pred_label = np.append(pred_label, batch_output, axis=0) 该两句话出错: ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (32,) + inhomogeneous part. 请问该如何解决?

哪个文件里面多少行报错额。

sdutgt commented 1 year ago

我也遇见这样的问题了,我的差不多在110多行哪里

taishan1994 commented 1 year ago

我也遇见这样的问题了,我的差不多在110多行哪里

有没可能是包的版本问题。