process data problem

Open
#3 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python

Research direction

Reproduce the command python run.py preprocess experiments/spider-configs/gap-run.jsonnet and trace the call from run.py through seq2struct/commands/preprocess.py into seq2struct/utils/registry.py. Inspect how the configuration's dataset arguments are interpreted and why args has unsupported kind 2. Done means preprocessing runs without this ValueError; no test file is mentioned in the report.

Written by the indexing model from the issue text.

Description

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

Dominant language
Python
Stars
109
Forks
25
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from awslabs/gap-text2sql

All issues in awslabs/gap-text2sql

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.