microsoft / rat-sql

A relation-aware semantic parsing model from English to SQL
https://arxiv.org/abs/1911.04942
MIT License
406 stars 117 forks source link

How to run RATSQL in google colab? #42

Closed mellahysf closed 3 years ago

mellahysf commented 3 years ago

As in the title, I want to run RATSQL in google collab but I don't know how to set up the environment sens Google collab doesn't support docker!!

Thank you.

DevanshChoubey commented 3 years ago

Hi @mellahysf,

I was able to run this model on Colab, if you want I could upload the same notebook onto my Github. Thought I will need to do a bit of cleanup. Do let me know if you still want it...

mellahysf commented 3 years ago

Yes @DevanshChoubey please, I still want it

DevanshChoubey commented 3 years ago

Hey @mellahysf,

I have just uploaded the notebook to my rat-SQL repo, do check it out, it contains all the things required to execute the eval or train(cells might not be in correct order though). It's a long time since I ran that notebook last time. It can be used for train and eval, except preprocessing as preprocess needs a core NLP server, which was not worth the trouble to execute on colab, so i executed on a small cloud VM.

PS- though now that we can run vscode server on colab and kaggle, there might be a chance to run even preprocess on colab or kaggle, though again it isn't worth the troubles.

https://github.com/DevanshChoubey/rat-sql/blob/master/RatSql.ipynb

ping me in case of any troubles....

good luck

mellahysf commented 3 years ago

Ok @DevanshChoubey I see.

I appreciate your help. Thank you very much.

alan-ai-learner commented 3 years ago

Hey @mellahysf,

I have just uploaded the notebook to my rat-SQL repo, do check it out, it contains all the things required to execute the eval or train(cells might not be in correct order though). It's a long time since I ran that notebook last time. It can be used for train and eval, except preprocessing as preprocess needs a core NLP server, which was not worth the trouble to execute on colab, so i executed on a small cloud VM.

PS- though now that we can run vscode server on colab and kaggle, there might be a chance to run even preprocess on colab or kaggle, though again it isn't worth the troubles.

https://github.com/DevanshChoubey/rat-sql/blob/master/RatSql.ipynb

ping me in case of any troubles....

good luck

hey thanks for making the notebooks, but i'm trying to run it in colab and unable to run it.?