dice-group / gerbil

GERBIL - General Entity annotatoR Benchmark
GNU Affero General Public License v3.0
224 stars 58 forks source link

about question set #378

Open xqx1568 opened 3 years ago

xqx1568 commented 3 years ago

Could you tell me what wrong with my dataset. When I upload my datasets, I wiil got "The dataset couldn't be loaded". I think I've followed the rules in https://github.com/dice-group/gerbil/wiki/Question-Answering. My datasets seems like this: {"questions": [ {"query": {"sparql": "PREFIX res: http://dbpedia.org/resource/\nPREFIX prop: http://dbpedia.org/property/\nSELECT ?date\nWHERE \n{\n res:LucasArts prop:foundation ?date .\n}"}, "question": [{"string": "When was Lucas Arts founded?", "language": "en"}], "id": "41_1_dbpedia-train-CDATA", "answers": [{"results": {"bindings": [{"type": "literal", "value": "May 1982"}]}}]}, {"query": {"sparql": "PREFIX dbp: http://dbpedia.org/property/ \nASK \nWHERE { \n http://dbpedia.org/resource/Prince_William,_Duke_of_Cambridge dbp:mother ?x . \n http://dbpedia.org/resource/Prince_Harry_of_Wales dbp:mother ?y . \n FILTER (?x = ?y) \n}"}, "question": [{"string": "Do Prince Harry and Prince William have the same mother?", "language": "en"}], "id": "123_qald-4_multilingual_train_withanswers", "answers": [{"boolean": true}]} ]}

LukasBluebaum commented 3 years ago

Hi, the format of the provided sample is not entirely correct. Please have a look at the revised example I provided below and let us know if you need any more help.

{
   "questions":[
      {
         "query":{
            "sparql":"PREFIX res: http://dbpedia.org/resource/\nPREFIX prop: http://dbpedia.org/property/\nSELECT ?date\nWHERE \n{\n res:LucasArts prop:foundation ?date .\n}"
         },
         "question":[
            {
               "string":"When was Lucas Arts founded?",
               "language":"en"
            }
         ],
         "id":"41_1_dbpedia-train-CDATA",
         "answers":[
            {
               "head":{
                  "vars":[
                     "uri"
                  ]
               },
               "results":{
                  "bindings":[
                     {
                        "uri":{
                           "type":"literal",
                           "value":"May 1982"
                        }
                     }
                  ]
               }
            }
         ]
      },
      {
         "query":{
            "sparql":"PREFIX dbp: http://dbpedia.org/property/ \nASK \nWHERE { \n http://dbpedia.org/resource/Prince_William,_Duke_of_Cambridge dbp:mother ?x . \n http://dbpedia.org/resource/Prince_Harry_of_Wales dbp:mother ?y . \n FILTER (?x = ?y) \n}"
         },
         "question":[
            {
               "string":"Do Prince Harry and Prince William have the same mother?",
               "language":"en"
            }
         ],
         "id":"123_qald-4_multilingual_train_withanswers",
         "answers":[
            {
               "head":{

               },
               "boolean":true
            }
         ]
      }
   ]
}