IDEA-FinAI / ToG

This is the official github repo of Think-on-Graph. If you are interested in our work or willing to join our research team in Shenzhen, please feel free to contact us by email (xuchengjin@idea.edu.cn)
348 stars 39 forks source link

Bug in eval of cwq #10

Closed YaooXu closed 8 months ago

YaooXu commented 9 months ago

When I use the eval.py to evaluate the performance of ToG on CWQ, I encounter an error:

File "/data/KBQA/ToG-new/eval/utils.py", line 63, in align
    alias = answer['aliases']
TypeError: string indices must be integers

In the cwq.json, the 'answer' of each query is a string, and it has no 'aliases' key.

GasolSun36 commented 9 months ago

Some data sets do not have aliases and can be removed directly.