Continual_Fewshot_Relation_Learning
Continual_Fewshot_Relation_Learning copied to clipboard
大佬,求助SOS
大佬,求助SOS。我这边复现过程中遇到了一些问题,希望可以获得你的帮助。 问题如下:
sampler = data_sampler(config, encoderforbase.tokenizer) -->跳转 self.training_data = self._gen_data(config['training_file']) -->跳转 data = self._transform_questions(data) -->跳转 return np.asarray(data) here Error!
采用的数据已经是代码中的数据集fewrel,代码名fewrel_2shot.py
错误提示:
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.