shijx12 / KQAPro_Baselines

Pytorch implementation of baseline models of KQA Pro, a large-scale dataset of complex question answering over knowledge base.
http://thukeg.gitee.io/kqa-pro/
MIT License
127 stars 22 forks source link

in KQAPro's 'kb.json' there is 'subClassOf' instead of 'instanceOf' for concepts #19

Closed stellarkey closed 2 years ago

stellarkey commented 2 years ago

In the code: https://github.com/shijx12/KQAPro_Baselines/blob/master/utils/load_kb.py#L15

knowledge json format:
    'concepts':
    {
        'id':
        {
            'name': '',
            'instanceOf': ['<concept_id>'],
        }
    },
......

While in KQAPro's dataset:

{
    "concepts": {
        "Q7270": {
            "name": "republic",
            "subclassOf": [
                "Q7174"
            ]
        },

in the paper: (KQA Pro)

image


Using subClassOf might be more reasonable comparing to instanceOf?

ShulinCao commented 2 years ago

The newly updated version fixed this problem.