Coder Social home page Coder Social logo

zychen423 / wikidata-simplequestions Goto Github PK

View Code? Open in Web Editor NEW

This project forked from askplatypus/wikidata-simplequestions

0.0 1.0 0.0 40.73 MB

Mapping of the SimpleQuestions dataset to Wikidata

License: Other

Jupyter Notebook 87.67% Python 12.33%

wikidata-simplequestions's Introduction

SimpleQuestionsWikidata

This repository provides a version of the SimpleQuestions dataset mapped to Wikidata.

Description

Data is organized in 6 files: annotated_wd_data_{train, valid, test}{_full}.txt . Each file contains one example per line with the following format: subject [tab] property [tab] object [tab] question, with subject, property and object being identifiers of Wikidata items or properties. Rxxx property identifiers encode the inverse property of the Wikidata property Pxxx. For example R19 encodes the properties "born here", i.e. the inverse of P19 ("birth place"). Note that not every translated triple must also exist in Wikidata. Part of the information when moving from Freebase to Wikidata was lost. The files ending with "_answerable" contain only triples that are also in Wikidata.

The mapping code is in the build.ipynb file. The mapping of Freebase topics to Wikidata items is done using the mid_to_qid.tsv file and the one between properties is the one stored on Wikidata. Contributions to these mappings are welcome.

  • annotated_wd_data_train.txt contains 34374 questions converted from the 75910 original questions.

  • annotated_wd_data_test.txt contains 9961 questions converted from the 21687 original questions.

  • annotated_wd_data_valid.txt contains 4867 questions converted from the 10845 original questions.

  • annotated_wd_data_train_answerable.txt contains 14894 questions converted from the 75910 original questions.

  • annotated_wd_data_test_answerable.txt contains 4295 questions converted from the 21687 original questions.

  • annotated_wd_data_valid_answerable.txt contains 2210 questions converted from the 10845 original questions.

You can find the same datasets also in the QALD format in the QALD-format directory.

Publication

If you use this dataset please cite:

Question Answering Benchmarks for Wikidata by Diefenbach, Dennis and Tanon, Thomas and Singh, Kamal and Maret, Pierre ISWC 2017

BibTeX:

@inproceedings{wikidata-benchmark,
  author    = {Dennis Diefenbach and
               Thomas Pellissier Tanon and
               Kamal Deep Singh and
               Pierre Maret},
  title     = {Question Answering Benchmarks for Wikidata},
  booktitle = {Proceedings of the {ISWC} 2017 Posters {\&} Demonstrations and
               Industry Tracks co-located with 16th International Semantic Web Conference
               {(ISWC} 2017), Vienna, Austria, October 23rd - to - 25th, 2017.},
  year      = {2017},
  url       = {http://ceur-ws.org/Vol-1963/paper555.pdf}
}

wikidata-simplequestions's People

Contributors

d063520 avatar daniel-mietchen avatar graue70 avatar tpt avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.