s-nlp / kbqa

0 stars 0 forks source link

Features/debug redirects label2entity #58

Closed highly0 closed 2 years ago

highly0 commented 2 years ago

Fix the bugs in wikidata/wikidata_entity_to_label.py. The previous commit regarding redirects had many bugs. For example, we get a bad label (let us call it A) and we were able to get our redirects. Let us call the redirects of A: A_1, A_2, ... A_n. If we still can't find the ID for A_1, the initial code keeps running the query A_1 forever. I have fixed that so now we will move on the A_2, and so on if we still can't find the label.