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)
238 stars 26 forks source link

IndexError in relation_search_prune #6

Closed liyichen-cly closed 6 months ago

liyichen-cly commented 6 months ago

Hi! I have encountered the following problems multiple times while running the code. Could you please advise on how to solve these issues? main_freebase.py, line 52, in retrieve_relations_with_scores = relation_search_prune(entity, topic_entity[entity], pre_relations, pre_heads[i], question, args) # best entity triplet, entitiy_id IndexError: list index out of range

GasolSun36 commented 6 months ago

Can you provide specific examples of which data set causes this error?

liyichen-cly commented 6 months ago

Thank you for your reply! It often occurs in the CWQ dataset. When I repeat the process, the error disappears and it may randomly occur again next time.

GasolSun36 commented 6 months ago

I think it may be that chatgpt mistakenly generated non-existent relations names during prune (hallucination issue). If you meet next time, please provide the specific data set and specific data ID.