Skip to content

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

Description

@imransalam
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions