Abstractive-Summarization icon indicating copy to clipboard operation
Abstractive-Summarization copied to clipboard

ValueError: setting an array element with a sequence

Open SojeongAn opened this issue 6 years ago • 3 comments

I am trying to run the code on the other dataset following the instructions in the readme, but I get 'ValueError: setting an array element with a sequence' when I try to train.

Do you have any idea where the problem could be?

SojeongAn avatar Oct 24 '19 05:10 SojeongAn

I am not sure where you are getting this error for, but I often get this error I am trying to convert a nested list into numpy (np.asarray), but the items in the list have different sequence lengths. This could be due to misprocessing the data...make sure before mini-batching the data is padded and everything.

JRC1995 avatar Oct 24 '19 06:10 JRC1995

thanks a lot;) I will have a try.

SojeongAn avatar Oct 24 '19 12:10 SojeongAn

Hi, do you still know what solved your problem? I'm facing the same issue right now.

DidiDerDenker avatar Dec 30 '20 12:12 DidiDerDenker