multihead_joint_entity_relation_extraction
multihead_joint_entity_relation_extraction copied to clipboard
config.batchsize!=1, raise error
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?
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?