awslabs / gap-text2sql

GAP-text2SQL: Learning Contextual Representations for Semantic Parsing with Generation-Augmented Pre-Training
https://arxiv.org/abs/2012.10309
Apache License 2.0
101 stars 24 forks source link

process data problem #3

Open 489597448 opened 3 years ago

489597448 commented 3 years ago

when i run python run.py preprocess experiments/spider-configs/gap-run.jsonnet erro:

Traceback (most recent call last): File "run.py", line 104, in main() File "run.py", line 62, in main preprocess.main(preprocess_config) File "/home/lishuan/hxh/text2sql/gap-text2sql-main/rat-sql-gap/seq2struct/commands/preprocess.py", line 44, in main preprocessor.preprocess() File "/home/lishuan/hxh/text2sql/gap-text2sql-main/rat-sql-gap/seq2struct/commands/preprocess.py", line 23, in preprocess data = registry.construct('dataset', self.config['data'][section]) File "/home/lishuan/hxh/text2sql/gap-text2sql-main/rat-sql-gap/seq2struct/utils/registry.py", line 36, in construct **kwargs) File "/home/lishuan/hxh/text2sql/gap-text2sql-main/rat-sql-gap/seq2struct/utils/registry.py", line 44, in instantiate raise ValueError('Unsupported kind for param {}: {}'.format(name, param.kind)) ValueError: Unsupported kind for param args: 2

Impavidity commented 3 years ago

Thanks for your interest on our work.

Did you try to follow the instruction to setup the environment? What is the Python version you use? I assume it is 3.6. You can try to use Python3.7 to see if you can solve this issue.

489597448 commented 3 years ago

Thanks for your interest on our work.

Did you try to follow the instruction to setup the environment? What is the Python version you use? I assume it is 3.6. You can try to use Python3.7 to see if you can solve this issue.

my python version is Python 3.7.9

Impavidity commented 3 years ago

Did your try to setup the virtual environment from the command line we provided? Did that work for you?

JoaoLages commented 3 years ago

same problem. did you solve it?

waytehsu commented 3 years ago

same problem with virtual environment on python 3.7.10

lezhu1234 commented 3 years ago

Here is a tricky slove: change File "seq2struct/utils/registry.py", line 41 signature = inspect.signature(callable) to signature = inspect.signature(callable.__init__)

alan-ai-learner commented 3 years ago

@Impavidity @lezhu1234 @JoaoLages @489597448 @waytehsu How much time will it take to preprocess the dataset, i was running the command for like past hours, it just keep running, can any one help me on this? Thanks