GithubHelp home page GithubHelp logo

simpledeeplearning / csv_wrangling Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alan-turing-institute/csv_wrangling

0.0 0.0 0.0 6.35 MB

Repository for reproducibility of the CSV file project

License: MIT License

Shell 0.22% Python 22.05% R 1.26% TeX 73.97% Makefile 2.14% Dockerfile 0.36%

csv_wrangling's Introduction

CSV Wrangling

Build Status DOI

This is the repository for reproducing the experiments in the paper:

Wrangling Messy CSV files by Detecting Row and Type Patterns (PDF)

by G.J.J. van den Burg, A. Nazabal and C. Sutton.

For an implementation of the method developed in the paper, see the CleverCSV repository.

If you use this paper or this code in your own work, please cite the paper using for instance the following BibTeX citation:

@article{van2019wrangling,
  title = {Wrangling Messy {CSV} Files by Detecting Row and Type Patterns},
  author = {{van den Burg}, G. J. J. and Naz{\'a}bal, A. and Sutton, C.},
  journal = {Data Mining and Knowledge Discovery},
  year = {2019},
  volume = {33},
  number = {6},
  pages = {1799--1820},
  issn = {1573-756X},
  doi = {10.1007/s10618-019-00646-y},
}

Introduction

Our experiments are made reproducible through the use of GNU Make. You can either set up your local environment with the necessary dependencies as described under Requirements, or use the Dockerfile included in the repository.

There are two ways to reproduce our results. The first only reproduces the figures, tables, and constants in the paper from the raw detection results, while the second runs the detection methods as well.

  1. You can reproduce the figures, tables, and constants from the raw experimental results included in this repository. This will not re-run all the experiments but will regenerate the output used in the paper. The command for this is:

    $ make output
  2. You can fully reproduce our experiments by downloading the data and rerunning the detection methods on all the files. This might take a while depending on the speed of your machine and the number of cores available. Total wall-clock computation time for a single core is estimated at 11 days. The following commands will do all of this.

    $ make clean       # remove existing output files, except human annotated
    $ make data        # download the data
    $ make results     # run all the detectors and generate the result files

    If you'd like to use multiple cores, you can replace the last command with:

    $ make -j X results

    where X is the desired number of cores.

Data

There are two datasets that are used in the experiments. Because we don't own the rights to all these files, we can't package these files and make them available in a single download. We can however provide URLs to the files and add a download script, which is what we do here. The data can be downloaded with:

$ make data

If you wish to change the download location of the data, please edit the DATA_DIR variable in the Makefile.

Note: We are aware of the fact that some of the files may change or become unavailable in the future. This is an unfortunate side-effect of using publically available data in this way. The data downloader skips files that are unavailable or that have changed. Note that this may affect the exact reproducibility of the results.

The above downloads the "test" set that was used for the evaluation in the paper. For the "working set" that was used to develop our algorithm, run make dev-data.

If the above datasets are insufficient, the complete original data sets are available on request for research purposes. Contact gertjanvandenburg at gmail dot com.

Requirements

Below are the requirements for reproducing the experiments if you're not using Docker. Note that at the moment only Linux-based systems are supported. MacOS will probably work, but hasn't been tested.

  • Python 3.x with the packages in the requirements.txt file. These can be installed with: pip install --user -r requirements.txt.

  • R with the external packages installed through: install.packages(c('devtools', 'rjson', 'data.tree', 'RecordLinkage', 'readr', 'tibble')).

  • A working LaTeX installation is needed for creating the figures (at least texlive-latex-extra and texlive-pictures), as well as a working LaTeXMK installation.

Instructions

To clone this repository and all its submodules do:

$ git clone --recurse-submodules https://github.com/alan-turing-institute/CSV_Wrangling

Then install the requirements as listed above and run the make command of your choice.

License

With the exception of the submodule in scripts/detection/lib/hypoparsr this code is licensed under the MIT license. See the LICENSE file for more details.

csv_wrangling's People

Contributors

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