Open hk-hp opened 1 year ago
Hi, sorry for the late reply. Can you share your email address?
Brothers upstairs, please tell me how you reproduced the code and ran it successfully. I encountered some problems during the reproduction process here, and I hope I can get your help. Questions are as follows:
sampler = data_sampler(config, encoderforbase.tokenizer) -->Jump self.training_data = self._gen_data(config['training_file']) -->Jump data = self._transform_questions(data) -->Jump return np.asarray(data) here Error!
The data used is already the data set fewrel in the code, the code name is fewrel_2shot.py
Error message:
setting an array element with a sequence. The requested array has an inhomogeneous shape after 2 dimensions. The detected shape was (1140, 12) + inhomogeneous part.
SOS! i really need help, thanks!
Thank you for sharing. I did the experiment on bert, but the gap between the discovery and the paper is large, can you explain why.Can you share the following pre-trained relationship model