LUMIA-Group / rasat

The official implementation of the paper "RASAT: Integrating Relational Structures into Pretrained Seq2Seq Model for Text-to-SQL"(EMNLP 2022)
https://arxiv.org/abs/2205.06983
Apache License 2.0
63 stars 18 forks source link

Training process bug #24

Open bekhzod-olimov opened 1 year ago

bekhzod-olimov commented 1 year ago

I have followed all the steps mentioned in the repo and the training went smooth enough until this point. Most probably it has a bug in rasat/seq2seq/utils/spider.py. Here is the error description:

ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (1034,) + inhomogeneous part.

Can you please help me to fix the issue?

image

bekhzod-olimov commented 1 year ago

After examining the spider.py, I have noticed the comment "# Replace -100 in the labels as we can't decode them.". Which value the label_ids should be replaced?