multihead_joint_entity_relation_extraction icon indicating copy to clipboard operation
multihead_joint_entity_relation_extraction copied to clipboard

config.batchsize!=1, raise error

Open Potato-Shy opened this issue 5 years ago • 1 comments

when I set batchsize=16 or other num, raise error"ValueError: setting an array element with a sequence."in """ _, val, predicted_ner, actual_ner, predicted_rel, actual_rel, _, m_train = self.sess.run( [operations.train_step, operations.obj, operations.predicted_op_ner, operations.actual_op_ner, operations.predicted_op_rel, operations.actual_op_rel, operations.score_op_rel, operations.m_op], feed_dict=x_train) """ how can i fix it?

Potato-Shy avatar Oct 15 '20 05:10 Potato-Shy

do you know how to set batchsize? If the batchsize is not 1, it seems that padding will affect the calculation of relationships. How can we remove the effect of padding?

disanrenchengcc avatar Apr 21 '21 08:04 disanrenchengcc