Dataset Viewer
Auto-converted to Parquet Duplicate
conversation_id
stringlengths
5
5
conversation
listlengths
5
14
root_neighbourhood
sequencelengths
10
50
69912
[ { "answer": "Erna Solberg", "question variants": [ { "in-context": "Norway is led by who?", "in-context subject ref": "Norway", "out-of-context": "Norway is led by who?", "synthetic-in-context": "Norway is led by who?" }, { "in-context": "Who is Norw...
[ [ "Q46", "P138", "Q165170" ], [ "Q203942", "P30", "Q46" ], [ "Q47545", "P17", "Q20" ], [ "Q20", "P1622", "Q14565199" ], [ "Q291644", "P19", "Q26793" ], [ "Q585", "P1441", "Q2385" ], [ "Q20", "P421", "Q6655" ...
69913
[ { "answer": "Nynorsk", "question variants": [ { "in-context": "What is the languoid in Norway called?", "in-context subject ref": "Norway", "out-of-context": "What is the languoid in Norway called?", "synthetic-in-context": "What is the languoid in Norway called?" ...
[ [ "Q46", "P138", "Q165170" ], [ "Q203942", "P30", "Q46" ], [ "Q47545", "P17", "Q20" ], [ "Q20", "P1622", "Q14565199" ], [ "Q291644", "P19", "Q26793" ], [ "Q585", "P1441", "Q2385" ], [ "Q20", "P421", "Q6655" ...
69914
[ { "answer": "Europe", "question variants": [ { "in-context": "The continent that Norway is on is what?", "in-context subject ref": "Norway", "out-of-context": "The continent that Norway is on is what?", "synthetic-in-context": "The continent that Norway is on is what?" ...
[ [ "Q46", "P138", "Q165170" ], [ "Q203942", "P30", "Q46" ], [ "Q47545", "P17", "Q20" ], [ "Q20", "P1622", "Q14565199" ], [ "Q291644", "P19", "Q26793" ], [ "Q585", "P1441", "Q2385" ], [ "Q20", "P421", "Q6655" ...
69951
[ { "answer": "Vientiane", "question variants": [ { "in-context": "Which city is known as the capital of Laos?", "in-context subject ref": "Laos", "out-of-context": "Which city is known as the capital of Laos?", "synthetic-in-context": "Which city is known as the capital ...
[ [ "Q9326", "-P931", "Q221279" ], [ "Q470024", "P19", "Q465940" ], [ "Q58323", "P106", "Q82955" ], [ "Q239485", "P17", "Q819" ], [ "Q14565199", "P913", "Q6265342" ], [ "Q470024", "P106", "Q82955" ], [ "Q48", "P610...
69952
[ { "answer": "Phou Bia", "question variants": [ { "in-context": "Which landform is the highest part of Laos?", "in-context subject ref": "Laos", "out-of-context": "Which landform is the highest part of Laos?", "synthetic-in-context": "Which landform is the highest part o...
[ [ "Q9326", "-P931", "Q221279" ], [ "Q470024", "P19", "Q465940" ], [ "Q58323", "P106", "Q82955" ], [ "Q239485", "P17", "Q819" ], [ "Q14565199", "P913", "Q6265342" ], [ "Q470024", "P106", "Q82955" ], [ "Q48", "P610...
70014
[ { "answer": "English", "question variants": [ { "in-context": "What is the official language of Kingdom of Africa?", "in-context subject ref": "Kingdom of Africa", "out-of-context": "What is the official language of Kingdom of Africa?", "synthetic-in-context": "What is ...
[ [ "Q105082407", "P361", "Q7159" ], [ "Q1860", "P3823", "Q29051546" ], [ "Q1860", "P361", "Q5329170" ], [ "Q7159", "P159", "Q3624" ], [ "Q1860", "-P800", "Q7107111" ], [ "Q7159", "-P1376", "Q3624" ], [ "Q7159", "P...
70015
[ { "answer": "African Union", "question variants": [ { "in-context": "Kingdom of Africa is part of what location?", "in-context subject ref": "Kingdom of Africa", "out-of-context": "Kingdom of Africa is part of what location?", "synthetic-in-context": "Kingdom of Africa ...
[ [ "Q105082407", "P361", "Q7159" ], [ "Q1860", "P3823", "Q29051546" ], [ "Q1860", "P361", "Q5329170" ], [ "Q7159", "P159", "Q3624" ], [ "Q1860", "-P800", "Q7107111" ], [ "Q7159", "-P1376", "Q3624" ], [ "Q7159", "P...
70016
[ { "answer": "African Union", "question variants": [ { "in-context": "Kingdom of Africa is a part of what location?", "in-context subject ref": "Kingdom of Africa", "out-of-context": "Kingdom of Africa is a part of what location?", "synthetic-in-context": "Kingdom of Afr...
[ [ "Q105082407", "P361", "Q7159" ], [ "Q1860", "P3823", "Q29051546" ], [ "Q1860", "P361", "Q5329170" ], [ "Q7159", "P159", "Q3624" ], [ "Q1860", "-P800", "Q7107111" ], [ "Q7159", "-P1376", "Q3624" ], [ "Q7159", "P...
70017
[ { "answer": "Yeva", "question variants": [ { "in-context": "Republic of Artsakh is the location of the narrative of what audiovisual work?", "in-context subject ref": "Republic of Artsakh", "out-of-context": "Republic of Artsakh is the location of the narrative of what audiovis...
[ [ "Q244165", "P706", "Q18869" ], [ "Q360462", "P69", "Q4801547" ], [ "Q18869", "-P915", "Q16070450" ], [ "Q440824", "-P1308", "Q2412322" ], [ "Q244165", "P36", "Q129352" ], [ "Q244165", "P35", "Q440824" ], [ "Q18869"...
70018
[ { "answer": "Bako Sahakyan", "question variants": [ { "in-context": "Republic of Artsakh is led by who?", "in-context subject ref": "Republic of Artsakh", "out-of-context": "Republic of Artsakh is led by who?", "synthetic-in-context": "Republic of Artsakh is led by who?...
[ [ "Q244165", "P706", "Q18869" ], [ "Q360462", "P69", "Q4801547" ], [ "Q18869", "-P915", "Q16070450" ], [ "Q440824", "-P1308", "Q2412322" ], [ "Q244165", "P36", "Q129352" ], [ "Q244165", "P35", "Q440824" ], [ "Q18869"...
70019
[ { "answer": "Asia", "question variants": [ { "in-context": "In what continent is Republic of Artsakh in?", "in-context subject ref": "Republic of Artsakh", "out-of-context": "In what continent is Republic of Artsakh in?", "synthetic-in-context": "In what continent is Re...
[ [ "Q244165", "P706", "Q18869" ], [ "Q360462", "P69", "Q4801547" ], [ "Q18869", "-P915", "Q16070450" ], [ "Q440824", "-P1308", "Q2412322" ], [ "Q244165", "P36", "Q129352" ], [ "Q244165", "P35", "Q440824" ], [ "Q18869"...
70317
[ { "answer": "Eurovision Song Contest 1996", "question variants": [ { "in-context": "Which competition did Ireland win?", "in-context subject ref": "Ireland", "out-of-context": "Which competition did Ireland win?", "synthetic-in-context": "Which competition did Ireland w...
[ [ "Q31747", "P1366", "Q27" ], [ "Q27", "P5658", "Q13196750" ], [ "Q46", "P138", "Q165170" ], [ "Q31747", "P36", "Q1761" ], [ "Q4916", "-P180", "Q55096296" ], [ "Q1761", "-P1302", "Q751771" ], [ "Q4916", "P138", ...
70318
[ { "answer": "Micheál Martin", "question variants": [ { "in-context": "Who is the head of government in Ireland?", "in-context subject ref": "Ireland", "out-of-context": "Who is the head of government in Ireland?", "synthetic-in-context": "Who is the head of government i...
[ [ "Q31747", "P1366", "Q27" ], [ "Q27", "P5658", "Q13196750" ], [ "Q46", "P138", "Q165170" ], [ "Q31747", "P36", "Q1761" ], [ "Q4916", "-P180", "Q55096296" ], [ "Q1761", "-P1302", "Q751771" ], [ "Q4916", "P138", ...
70319
[ { "answer": "North Slob", "question variants": [ { "in-context": "What is the lowest point of Ireland?", "in-context subject ref": "Ireland", "out-of-context": "What is the lowest point of Ireland?", "synthetic-in-context": "What is the lowest point of Ireland?" }...
[ [ "Q31747", "P1366", "Q27" ], [ "Q27", "P5658", "Q13196750" ], [ "Q46", "P138", "Q165170" ], [ "Q31747", "P36", "Q1761" ], [ "Q4916", "-P180", "Q55096296" ], [ "Q1761", "-P1302", "Q751771" ], [ "Q4916", "P138", ...
70335
[ { "answer": "Victoire Dogbé Tomegah", "question variants": [ { "in-context": "Togo is led by who?", "in-context subject ref": "Togo", "out-of-context": "Togo is led by who?", "synthetic-in-context": "Togo is led by who?" }, { "in-context": "Who is To...
[ [ "Q945", "P37", "Q150" ], [ "Q945", "P1622", "Q14565199" ], [ "Q16682496", "P106", "Q82955" ], [ "Q945", "P421", "Q6574" ], [ "Q3792", "P206", "Q41430" ], [ "Q97466048", "P103", "Q150" ], [ "Q797214", "P30", ...
70336
[ { "answer": "Lomé", "question variants": [ { "in-context": "What is the capital of Togo?", "in-context subject ref": "Togo", "out-of-context": "What is the capital of Togo?", "synthetic-in-context": "What is the capital of Togo?" }, { "in-context": "...
[ [ "Q945", "P37", "Q150" ], [ "Q945", "P1622", "Q14565199" ], [ "Q16682496", "P106", "Q82955" ], [ "Q945", "P421", "Q6574" ], [ "Q3792", "P206", "Q41430" ], [ "Q97466048", "P103", "Q150" ], [ "Q797214", "P30", ...
70337
[ { "answer": "West African CFA franc", "question variants": [ { "in-context": "What is used as the currency of Togo?", "in-context subject ref": "Togo", "out-of-context": "What is used as the currency of Togo?", "synthetic-in-context": "What is used as the currency of To...
[ [ "Q945", "P37", "Q150" ], [ "Q945", "P1622", "Q14565199" ], [ "Q16682496", "P106", "Q82955" ], [ "Q945", "P421", "Q6574" ], [ "Q3792", "P206", "Q41430" ], [ "Q97466048", "P103", "Q150" ], [ "Q797214", "P30", ...
70479
[ { "answer": "Gulf of Guinea", "question variants": [ { "in-context": "What is the lowest geographic point of Ghana?", "in-context subject ref": "Ghana", "out-of-context": "What is the lowest geographic point of Ghana?", "synthetic-in-context": "What is the lowest geogra...
[ [ "Q718601", "P140", "Q5043" ], [ "Q117", "-P180", "Q22669937" ], [ "Q117", "P30", "Q15" ], [ "Q15307583", "P131", "Q117" ], [ "Q1860", "-P800", "Q7107111" ], [ "Q635179", "P30", "Q15" ], [ "Q117", "P36", "Q3...
End of preview. Expand in Data Studio

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: string
    • root_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 variant
      • in-context: another form of the question variant
      • in-context subject ref: how the subject is referred to in the in-context form
      • synthetic-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 entity
  • labels: list of strings
  • preferred_label: string

The fields from the templates config are the following:

  • template_key: a dict containing the conditions for using the templates listed in templates, with the following fields:
    • p: id of the property
    • s_types: required types for subject
    • o_types: require types for object
  • templates: list of dicts representing templates; each dict has the following fields:
    • left: left part of the template
    • right: right part of the template
    • source: 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
255

Paper for Orange/KGConv