conversation_id stringlengths 5 5 | root_neighbourhood listlengths 10 50 | conversation listlengths 5 14 |
|---|---|---|
69912 | [
[
"Q46",
"P138",
"Q165170"
],
[
"Q203942",
"P30",
"Q46"
],
[
"Q47545",
"P17",
"Q20"
],
[
"Q20",
"P1622",
"Q14565199"
],
[
"Q291644",
"P19",
"Q26793"
],
[
"Q585",
"P1441",
"Q2385"
],
[
"Q20",
"P421",
"Q6655"
... | [
{
"triple": [
"Q20",
"P6",
"Q291644"
],
"question variants": [
{
"out-of-context": "Norway is led by who?",
"in-context": "Norway is led by who?",
"in-context subject ref": "Norway",
"synthetic-in-context": "Norway is led by who?"
},
{
... |
69913 | [
[
"Q46",
"P138",
"Q165170"
],
[
"Q203942",
"P30",
"Q46"
],
[
"Q47545",
"P17",
"Q20"
],
[
"Q20",
"P1622",
"Q14565199"
],
[
"Q291644",
"P19",
"Q26793"
],
[
"Q585",
"P1441",
"Q2385"
],
[
"Q20",
"P421",
"Q6655"
... | [
{
"triple": [
"Q20",
"-P2341",
"Q25164"
],
"question variants": [
{
"out-of-context": "What is the languoid in Norway called?",
"in-context": "What is the languoid in Norway called?",
"in-context subject ref": "Norway",
"synthetic-in-context": "Wha... |
69914 | [
[
"Q46",
"P138",
"Q165170"
],
[
"Q203942",
"P30",
"Q46"
],
[
"Q47545",
"P17",
"Q20"
],
[
"Q20",
"P1622",
"Q14565199"
],
[
"Q291644",
"P19",
"Q26793"
],
[
"Q585",
"P1441",
"Q2385"
],
[
"Q20",
"P421",
"Q6655"
... | [
{
"triple": [
"Q20",
"P30",
"Q46"
],
"question variants": [
{
"out-of-context": "The continent that Norway is on is what?",
"in-context": "The continent that Norway is on is what?",
"in-context subject ref": "Norway",
"synthetic-in-context": "The c... |
69951 | [
[
"Q9326",
"-P931",
"Q221279"
],
[
"Q470024",
"P19",
"Q465940"
],
[
"Q58323",
"P106",
"Q82955"
],
[
"Q239485",
"P17",
"Q819"
],
[
"Q14565199",
"P913",
"Q6265342"
],
[
"Q470024",
"P106",
"Q82955"
],
[
"Q48",
"P610... | [
{
"triple": [
"Q819",
"P36",
"Q9326"
],
"question variants": [
{
"out-of-context": "Which city is known as the capital of Laos?",
"in-context": "Which city is known as the capital of Laos?",
"in-context subject ref": "Laos",
"synthetic-in-context":... |
69952 | [
[
"Q9326",
"-P931",
"Q221279"
],
[
"Q470024",
"P19",
"Q465940"
],
[
"Q58323",
"P106",
"Q82955"
],
[
"Q239485",
"P17",
"Q819"
],
[
"Q14565199",
"P913",
"Q6265342"
],
[
"Q470024",
"P106",
"Q82955"
],
[
"Q48",
"P610... | [
{
"triple": [
"Q819",
"P610",
"Q239485"
],
"question variants": [
{
"out-of-context": "Which landform is the highest part of Laos?",
"in-context": "Which landform is the highest part of Laos?",
"in-context subject ref": "Laos",
"synthetic-in-contex... |
70014 | [
[
"Q105082407",
"P361",
"Q7159"
],
[
"Q1860",
"P3823",
"Q29051546"
],
[
"Q1860",
"P361",
"Q5329170"
],
[
"Q7159",
"P159",
"Q3624"
],
[
"Q1860",
"-P800",
"Q7107111"
],
[
"Q7159",
"-P1376",
"Q3624"
],
[
"Q7159",
"P... | [
{
"triple": [
"Q105082407",
"P37",
"Q1860"
],
"question variants": [
{
"out-of-context": "What is the official language of Kingdom of Africa?",
"in-context": "What is the official language of Kingdom of Africa?",
"in-context subject ref": "Kingdom of Afric... |
70015 | [
[
"Q105082407",
"P361",
"Q7159"
],
[
"Q1860",
"P3823",
"Q29051546"
],
[
"Q1860",
"P361",
"Q5329170"
],
[
"Q7159",
"P159",
"Q3624"
],
[
"Q1860",
"-P800",
"Q7107111"
],
[
"Q7159",
"-P1376",
"Q3624"
],
[
"Q7159",
"P... | [
{
"triple": [
"Q105082407",
"P361",
"Q7159"
],
"question variants": [
{
"out-of-context": "Kingdom of Africa is part of what location?",
"in-context": "Kingdom of Africa is part of what location?",
"in-context subject ref": "Kingdom of Africa",
"sy... |
70016 | [
[
"Q105082407",
"P361",
"Q7159"
],
[
"Q1860",
"P3823",
"Q29051546"
],
[
"Q1860",
"P361",
"Q5329170"
],
[
"Q7159",
"P159",
"Q3624"
],
[
"Q1860",
"-P800",
"Q7107111"
],
[
"Q7159",
"-P1376",
"Q3624"
],
[
"Q7159",
"P... | [
{
"triple": [
"Q105082407",
"P361",
"Q7159"
],
"question variants": [
{
"out-of-context": "Kingdom of Africa is a part of what location?",
"in-context": "Kingdom of Africa is a part of what location?",
"in-context subject ref": "Kingdom of Africa",
... |
70017 | [
[
"Q244165",
"P706",
"Q18869"
],
[
"Q360462",
"P69",
"Q4801547"
],
[
"Q18869",
"-P915",
"Q16070450"
],
[
"Q440824",
"-P1308",
"Q2412322"
],
[
"Q244165",
"P36",
"Q129352"
],
[
"Q244165",
"P35",
"Q440824"
],
[
"Q18869"... | [
{
"triple": [
"Q244165",
"-P840",
"Q41365879"
],
"question variants": [
{
"out-of-context": "Republic of Artsakh is the location of the narrative of what audiovisual work?",
"in-context": "Republic of Artsakh is the location of the narrative of what audiovisual wo... |
70018 | [
[
"Q244165",
"P706",
"Q18869"
],
[
"Q360462",
"P69",
"Q4801547"
],
[
"Q18869",
"-P915",
"Q16070450"
],
[
"Q440824",
"-P1308",
"Q2412322"
],
[
"Q244165",
"P36",
"Q129352"
],
[
"Q244165",
"P35",
"Q440824"
],
[
"Q18869"... | [
{
"triple": [
"Q244165",
"P6",
"Q360462"
],
"question variants": [
{
"out-of-context": "Republic of Artsakh is led by who?",
"in-context": "Republic of Artsakh is led by who?",
"in-context subject ref": "Republic of Artsakh",
"synthetic-in-context"... |
70019 | [
[
"Q244165",
"P706",
"Q18869"
],
[
"Q360462",
"P69",
"Q4801547"
],
[
"Q18869",
"-P915",
"Q16070450"
],
[
"Q440824",
"-P1308",
"Q2412322"
],
[
"Q244165",
"P36",
"Q129352"
],
[
"Q244165",
"P35",
"Q440824"
],
[
"Q18869"... | [
{
"triple": [
"Q244165",
"P30",
"Q48"
],
"question variants": [
{
"out-of-context": "In what continent is Republic of Artsakh in?",
"in-context": "In what continent is Republic of Artsakh in?",
"in-context subject ref": "Republic of Artsakh",
"synt... |
70317 | [
[
"Q31747",
"P1366",
"Q27"
],
[
"Q27",
"P5658",
"Q13196750"
],
[
"Q46",
"P138",
"Q165170"
],
[
"Q31747",
"P36",
"Q1761"
],
[
"Q4916",
"-P180",
"Q55096296"
],
[
"Q1761",
"-P1302",
"Q751771"
],
[
"Q4916",
"P138",
... | [
{
"triple": [
"Q27",
"-P1346",
"Q207815"
],
"question variants": [
{
"out-of-context": "Which competition did Ireland win?",
"in-context": "Which competition did Ireland win?",
"in-context subject ref": "Ireland",
"synthetic-in-context": "Which com... |
70318 | [
[
"Q31747",
"P1366",
"Q27"
],
[
"Q27",
"P5658",
"Q13196750"
],
[
"Q46",
"P138",
"Q165170"
],
[
"Q31747",
"P36",
"Q1761"
],
[
"Q4916",
"-P180",
"Q55096296"
],
[
"Q1761",
"-P1302",
"Q751771"
],
[
"Q4916",
"P138",
... | [
{
"triple": [
"Q27",
"P6",
"Q920403"
],
"question variants": [
{
"out-of-context": "Who is the head of government in Ireland?",
"in-context": "Who is the head of government in Ireland?",
"in-context subject ref": "Ireland",
"synthetic-in-context": ... |
70319 | [
[
"Q31747",
"P1366",
"Q27"
],
[
"Q27",
"P5658",
"Q13196750"
],
[
"Q46",
"P138",
"Q165170"
],
[
"Q31747",
"P36",
"Q1761"
],
[
"Q4916",
"-P180",
"Q55096296"
],
[
"Q1761",
"-P1302",
"Q751771"
],
[
"Q4916",
"P138",
... | [
{
"triple": [
"Q27",
"P1589",
"Q7056767"
],
"question variants": [
{
"out-of-context": "What is the lowest point of Ireland?",
"in-context": "What is the lowest point of Ireland?",
"in-context subject ref": "Ireland",
"synthetic-in-context": "What ... |
70335 | [
[
"Q945",
"P37",
"Q150"
],
[
"Q945",
"P1622",
"Q14565199"
],
[
"Q16682496",
"P106",
"Q82955"
],
[
"Q945",
"P421",
"Q6574"
],
[
"Q3792",
"P206",
"Q41430"
],
[
"Q97466048",
"P103",
"Q150"
],
[
"Q797214",
"P30",
... | [
{
"triple": [
"Q945",
"P6",
"Q16682496"
],
"question variants": [
{
"out-of-context": "Togo is led by who?",
"in-context": "Togo is led by who?",
"in-context subject ref": "Togo",
"synthetic-in-context": "Togo is led by who?"
},
{
... |
70336 | [
[
"Q945",
"P37",
"Q150"
],
[
"Q945",
"P1622",
"Q14565199"
],
[
"Q16682496",
"P106",
"Q82955"
],
[
"Q945",
"P421",
"Q6574"
],
[
"Q3792",
"P206",
"Q41430"
],
[
"Q97466048",
"P103",
"Q150"
],
[
"Q797214",
"P30",
... | [
{
"triple": [
"Q945",
"P36",
"Q3792"
],
"question variants": [
{
"out-of-context": "What is the capital of Togo?",
"in-context": "What is the capital of Togo?",
"in-context subject ref": "Togo",
"synthetic-in-context": "What is the capital of Togo?... |
70337 | [
[
"Q945",
"P37",
"Q150"
],
[
"Q945",
"P1622",
"Q14565199"
],
[
"Q16682496",
"P106",
"Q82955"
],
[
"Q945",
"P421",
"Q6574"
],
[
"Q3792",
"P206",
"Q41430"
],
[
"Q97466048",
"P103",
"Q150"
],
[
"Q797214",
"P30",
... | [
{
"triple": [
"Q945",
"P38",
"Q861690"
],
"question variants": [
{
"out-of-context": "What is used as the currency of Togo?",
"in-context": "What is used as the currency of Togo?",
"in-context subject ref": "Togo",
"synthetic-in-context": "What is ... |
70479 | [
[
"Q718601",
"P140",
"Q5043"
],
[
"Q117",
"-P180",
"Q22669937"
],
[
"Q117",
"P30",
"Q15"
],
[
"Q15307583",
"P131",
"Q117"
],
[
"Q1860",
"-P800",
"Q7107111"
],
[
"Q635179",
"P30",
"Q15"
],
[
"Q117",
"P36",
"Q3... | [
{
"triple": [
"Q117",
"P1589",
"Q41430"
],
"question variants": [
{
"out-of-context": "What is the lowest geographic point of Ghana?",
"in-context": "What is the lowest geographic point of Ghana?",
"in-context subject ref": "Ghana",
"synthetic-in-c... |
KGConv, a Conversational Corpus grounded in Wikidata
Dataset Summary
KGConv is a large corpus of 71k english conversations where each question-answer pair is grounded in a Wikidata fact. The conversations were generated automatically: in particular, questions were created using a collection of 10,355 templates; subsequently, the naturalness of conversations was improved by inserting ellipses and coreference into questions, via both handcrafted rules and a generative rewriting model. The dataset thus provides several variants of each question (12 on average), organized into 3 levels of conversationality. KGConv can further be used for other generation and analysis tasks such as single-turn question generation from Wikidata triples, question rewriting, question answering from conversation or from knowledge graphs and quiz generation.
Languages
English.
Dataset Structure
The dataset has three components:
- conversation configs, divided in several themes that correspond to configs of the form
conversations.theme, where theme has to be replaced by one of the following: country, food, historical_event, ideology, molecular_entity, person, space_object, taxon, with_unseen_properties; - labels, a config that contains labels for all entities and properties involved in the conversations;
- templates, a config that contains the templates that where used for generating questions.
Data Instances
Instance from the configs with name of the form "conversations.theme" (e.g. "conversations.country") have the following form:
{
"conversation_id": "69795",
"root_neighbourhood": [
[
"Q6138903",
"P106",
"Q82955"
],
[
"Q6138903",
"P19",
"Q3408680"
],
...
],
"conversation": [
{
"triple": [
"Q691",
"P30",
"Q538"
],
"question variants": [
{
"out-of-context": "In which continent is Papua New Guinea located?",
"in-context": "In which continent is Papua New Guinea located?",
"in-context subject ref": "Papua New Guinea",
"synthetic-in-context": "In which continent is Papua New Guinea located?"
},
{
"out-of-context": "In what continent is Papua New Guinea in?",
"in-context": "In what continent is Papua New Guinea in?",
"in-context subject ref": "Papua New Guinea",
"synthetic-in-context": "In what continent is Papua New Guinea in?"
},
...
],
"answer": "Oceania"
},
{
"triple": [
"Q691",
"P38",
"Q200759"
],
"question variants": [
{
"out-of-context": "What is accepted as the currency of Papua New Guinea?",
"in-context": "What is accepted as the currency of Papua New Guinea?",
"in-context subject ref": "Papua New Guinea",
"synthetic-in-context": "What is accepted as the currency?"
},
{
"out-of-context": "What is the currency of Papua New Guinea?",
"in-context": "What is the currency of Papua New Guinea?",
"in-context subject ref": "Papua New Guinea",
"synthetic-in-context": "What is the currency?"
},
...
],
"answer": "kina"
},
...
Instances from the labels config are like this:
{
"entity": "Q39",
"labels": [
"Swiss Confederation",
"CHE",
"Confoederatio Helvetica",
"Swiss",
"Schweiz",
"SUI",
"Switzerland",
"CH",
"Suisse",
"Svizzera"
],
"preferred_label": "Switzerland"
}
Instances from the templates config are as follows.
{
"template_key": {
"p": "P1201",
"s_types": [
"Q149918"
],
"o_types": []
},
"templates": [
{
"left": "what is the space tug of ",
"right": "?",
"source": "interface:automatic labeler"
},
{
"left": "what was the space tug of ",
"right": "?",
"source": "interface:624dc1cd4432b5035ba082df"
},
...
]
}
Data Fields
The fields from the configs with name of the form "conversations.theme" (e.g. "conversations.country") are the following:
conversation: list of dicts; each dict reprensent one question+answer and has the following fields:conversation_id: stringroot_neighbourhood: list of triples (each triple is itself represented by a list of 3 string elements) that constitute the neighbourhood of the conversation root entity in the knowledge graph (see the LREC publication for more details)triple: triple on which the question is based (list of three string elements)question variants: list of dict; each dict contain several forms of a question obtained via a given template (see the LREC publication for more details)out-of-context: one form of the question variantin-context: another form of the question variantin-context subject ref: how the subject is referred to in the in-context formsynthetic-in-context: yet another form of the question variant
answer: answer to the question (string)
The fields from the labels config are the following:
entity: string, id of the entitylabels: list of stringspreferred_label: string
The fields from the templates config are the following:
template_key: a dict containing the conditions for using the templates listed intemplates, with the following fields:p: id of the propertys_types: required types for subjecto_types: require types for object
templates: list of dicts representing templates; each dict has the following fields:left: left part of the templateright: right part of the templatesource: origin of the template (string)
Additional Information
Licensing Information
This software is distributed under the Creative Commons Attribution 4.0 International, the text of which is available at https://spdx.org/licenses/CC-BY-4.0.html or see the "license.txt" file for more details.
Citation Information
@article{brabant2023kgconv,
title={KGConv, a Conversational Corpus grounded in Wikidata},
author={Quentin Brabant and Gwenole Lecorve and Lina M. Rojas-Barahona and Claire Gardent},
year={2023},
eprint={2308.15298},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
- Downloads last month
- 240