berlino / tensor2struct-public

Semantic parsers based on encoder-decoder framework
MIT License
89 stars 22 forks source link

Unable to pre-train for task sql2nl #20

Open parmesant opened 4 months ago

parmesant commented 4 months ago

According to this readme file, I should be able to run the Pretraining step by running this line of code- python experiments/sql2nl/run.py train configs/spider/run_config/run_en_spider_pretrain_syn.jsonnet

However, I run into this error-

  File "/tensor2struct-public/tensor2struct/models/spider/spider_enc_bert.py", line 175, in load
    with open(os.path.join(self.data_dir, "relations.json"), "r") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'data/spider/spider-0727-google/electra-base-discriminator,other_train-true,syn-r6-m128,sc_link=true,cv_link=true/enc/relations.json'

I've tried looking for relations.json in the repo but couldn't find it there

berlino commented 4 months ago

I think they've updated the dataset.

parmesant commented 4 months ago

Do you recall what that file was supposed to be doing?