Coder Social home page Coder Social logo

wiki_tables's Introduction

TableNet: An Approach for Determining Fine-grained Relations for Wikipedia Tables

This repository contains the code for extracting tables from Wikipedia, and additionally contains the models for determining if for a pair of tables one of the relations subPartOf or equivalent holds.

HTML Article Extraction

To extract the HTML content of the Wikipedia articles, please use the following command:

java -cp *COMPILED_PROJECT*.jar HTMLTableExtractor -option crawl_table_articles -seed SEED_FILE -out OUT_FILE
  • SEED_FILE: should consist of a list of articles that you are interested in extracting the HTML content. Each line contains an article name.
  • OUT_FILE: the output file where the extracted HTML content is stored.

Table Extraction

To extract the tables, please use the following command:

java -cp *COMPILED_PROJECT*.jar HTMLTableExtractor -option parse_tables -in INPUT_FILE -out OUT_FILE
  • INPUT_FILE: should point to the HTML content of the Wikipedia articles. The HTML content is JSON escaped, such that each line consists of an article. You can use the previous operation (*HTML Article Extraction*) to extract the HTML content.
  • OUTPUT_FILE: the file where the extracted tables will be outputed in JSON format.

Table Alignment

We have uploaded all the datasets for the TableNet evaluation as well as the extracted tables at table data. The TableNet code for alignment of tables can be found here.

Citation

Please cite the following work, when using this dataset or approach.

@article{fetahu2019tablenet,
  title={TableNet: An Approach for Determining Fine-grained Relations for Wikipedia Tables},
  author={Fetahu, Besnik and Anand, Avishek and Koutraki, Maria},
  booktitle={Proceedings of the 2019 World Wide Web Conference on World Wide Web, {WWW} 2019, San Francisco, USA, May 13-17},
  year={2019}
}

wiki_tables's People

Contributors

bfetahu 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.