qcwthu / Continual_Fewshot_Relation_Learning

MIT License
16 stars 0 forks source link

大佬,求助SOS #11

Open KaiserLord opened 11 months ago

KaiserLord commented 11 months ago

大佬,求助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.

KaiserLord commented 11 months ago

附上邮箱 q:694482337@qq.com