Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: string indices must be integers in preprocess.py #8

Open
imransalam opened this issue Aug 29, 2019 · 0 comments
Open

TypeError: string indices must be integers in preprocess.py #8

imransalam opened this issue Aug 29, 2019 · 0 comments

Comments

@imransalam
Copy link

Preparing training ...
Building Training...
Traceback (most recent call last):
  File "preprocess.py", line 71, in <module>
    main()
  File "preprocess.py", line 49, in main
    train = table.IO.TableDataset(opt.train_anno, fields, opt, True)
  File "/home/shahqaan_qasim/imran/nl2sql/src/table/IO.py", line 106, in __init__
    js_list = read_anno_json(anno)
  File "/home/shahqaan_qasim/imran/nl2sql/src/table/IO.py", line 82, in read_anno_json
    cond_list = list(enumerate(js['query']['conds']))
TypeError: string indices must be integers

After following the issue #7 , I copied train.jsonl from data to annotated. And now it gives me the above error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant