google-research / tapas

End-to-end neural table-text understanding models.
Apache License 2.0
1.15k stars 217 forks source link

Not able to run sample code #23

Closed panddu15 closed 3 years ago

panddu15 commented 4 years ago

Hi, I am stuck at result path in sample code it throwing following error [Errno 2] No such file or directory: 'results/sqa/model/test_sequence.tsv' I even checked in result folder i did not find the test_sequence.tsv file

nopper commented 4 years ago

Hi @panddu15,

Can you provide more context and also paste the command you used, so we can try to reproduce the error from our side?

panddu15 commented 4 years ago

Hi @panddu15,

Can you provide more context and also paste the command you used, so we can try to reproduce the error from our side?

---> 18 with open(results_path) as csvfile: 19 reader = csv.DictReader(csvfile, delimiter='\t') 20 for row in reader:

FileNotFoundError: [Errno 2] No such file or directory: 'results/sqa/model/test_sequence.tsv'

nopper commented 4 years ago

Hi @panddu15,

Can you include the full command line you used that actually triggered the exception? And possibly explain what you are trying to do?

muelletm commented 4 years ago

test_sequence.tsv should be output when you run the prediction for an SQA model. Can you share how you ran the prediction job?

panddu15 commented 4 years ago

Hi, I was just trying to run the sample code and i did not do any changes in the code Note: i am running on it AWS machine where tapas is installed in root and i am accessing jupyter from user.

tapas_error
mdmustafizurrahman commented 4 years ago

One question SQA task does not support COUNT,AVERAGE, MAX etc. For that we need WikiTable Task right. But as I mentioned multiple times, for none of your pretrained model you provided, WikiTable task is not working. Please kindly clarify or kindly provide a model trained on WikiTable.

muelletm commented 4 years ago

@mdmustafizurrahman, yes we currently don't provide a model that supports COUNT or AVERAGE (MAX is implicit so it should work). I'll see if we can release the WTQ or WikiSQL model.

@panddu15, there must be another error before that. The actual prediction job seems to be failing or somehow it's configured to don't run the sequence prediction. Can you check if you are running with CPU or GPU?

mdmustafizurrahman commented 4 years ago

@muelletm I would really appreciate if you could release WTQ

panddu15 commented 4 years ago

@muelletm I was running on CPU and there is no error prior to this.

sbhttchryy commented 4 years ago

Hello @muelletm I too am facing the same error when trying to run the Colab notebook

ghost commented 4 years ago

The WTQ model was released today. Closing feel free to reopen if there is still an issue with the colab.

sophgit commented 3 years ago

I somehow managed to ruin my installed packages . Now I'm trying to do the tapas installation (Ubuntu 20.04) all over again and received the exact same error as described above (except for WTQ instead of SQA).: FileNotFoundError: [Errno 2] No such file or directory: 'results/wtq/model/test_sequence.tsv' No GPU. It did not create the test_sequence.tsv file. Any idea how to solve this?

ghost commented 3 years ago

That's odd, there should be no test_sequence.tsv for WTQ just test.tsv.

Can you share how you ran this? And maybe also a stack trace?

sophgit commented 3 years ago

oh, so sorry, yes, the Error was: FileNotFoundError: [Errno 2] No such file or directory: 'results/wtq/model/test.tsv'

installed tapas with pip install ./tapas/ and there were no errors until the prediction, where it didn't find the test.tsv, because it simply didn't create it. I managed to "solve" the problem by shutting all notebooks and Ubuntu down and then running the same line pip install ./tapas/ again... not sure what caused or solved the problem, but now it works. Thank you anyhow!!