Giter Club home page Giter Club logo

numgment's Introduction

numgment

This library allows:

  1. Sampling tuples in ascending order from arbitrary Cartesian product of discrete sets exactly uniformly: equation. This is done using dynamic programming technique in equation time where equation.

  2. Augmenting Question Answering datasets involving numerical reasoning. This is done by changing the numbers from a (question, passage) pair to some other random numbers of the same magnitude and the same number of trailing zeros (plus some other possible constraints) while maintaining the original order of these numbers. Uniform sampling from step 1 is used for this purpose. Keeping the original order is needed to compute the answer for the augmented sample in the cases where the order of numbers matters in the derivation ("How many yards longer was the second-longest touchdown compared to the shortest?"). An example for this use case is provided for the DROP dataset:

python augment_drop_data/main.py --augmentation_config_path 'augment_drop_data/augmentation_config.json' --train_data_path 'drop_dataset/drop_dataset_train.json' --prediction_train_path 'predictions_on_original_train.json' --output_path 'new_train_data.json'

numgment's People

Contributors

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