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

Evaluation script can't be used on train_gold labels #52

Open
CrafterKolyan opened this issue Jun 8, 2020 · 0 comments
Open

Evaluation script can't be used on train_gold labels #52

CrafterKolyan opened this issue Jun 8, 2020 · 0 comments

Comments

@CrafterKolyan
Copy link

Command:

../evaluation.py --gold train_gold.sql --pred train_gold.sql --db database --table tables.json --etype all

Output:

Traceback (most recent call last):
  File "../evaluation.py", line 866, in <module>
    evaluate(gold, pred, db_dir, etype, kmaps)
  File "../evaluation.py", line 505, in evaluate
    g_sql = get_sql(schema, g_str)
  File "/home/nikolai.korolev/workspace/spider/process_sql.py", line 552, in get_sql
    _, sql = parse_sql(tokens, 0, tables_with_alias, schema)
  File "/home/nikolai.korolev/workspace/spider/process_sql.py", line 504, in parse_sql
    from_end_idx, table_units, conds, default_tables = parse_from(tokens, start_idx, tables_with_alias, schema)
  File "/home/nikolai.korolev/workspace/spider/process_sql.py", line 389, in parse_from
    idx, table_unit, table_name = parse_table_unit(tokens, idx, tables_with_alias, schema)
  File "/home/nikolai.korolev/workspace/spider/process_sql.py", line 259, in parse_table_unit
    key = tables_with_alias[tokens[idx]]
KeyError: 'ref_company_types'

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