Coder Social home page Coder Social logo

cord-19-qa's Introduction

CORD-19 Question Answering

This repo contains tools for training/running neural multi-document question answering models to help researchers identify relevant articles in the CORD-19 dataset. Currently very under construction. STAY TUNED FOR UPDATES!

Overview

Our approach is based off of DrQA(Chen et al. 2017). Our is pipeline comprised of two components:

  1. A document retriever. Currently, a BM25 search index.
  2. A document reader. Currently, BioBERT fine-tuned on the BioASQ dataset.

Tasks

Tasks directly related to this project are tracked here.

Please note that we have a healthy team of contributors for this project. If you are looking for a project to contribute to but do not have much experience with QA, then we recommend trying to solve one of the tasks posted in our requests for other teams.

Usage

BM25 Index bm25_index.py

If you are running this file for the first time, you will need to manually build a BM25 index. For subsequent runs, the BM25 index can be loaded from a pickle file. The most important command-line arguments to worry about are:

  • --data-dir: path to your data folder. This will walk the directory tree starting from the specified directory and process all .json files.
  • --index-path: path to the BM25 index. If building an index, this is where it will be saved; if loading an index, this is where it will be loaded.
  • --query: the query (a string).
  • --result-path-base: the base path where the results will be saved as a .csv.

Other arguments include:

  • --nresults: number of results to return. Ordered by descending score.
  • --rebuild-index: rebuilds the BM25 index from scratch.
  • --paragraphs: only used if rebuild-index is specified; whether to build the index on abstracts or paragraphs.

Resources

cord-19-qa's People

Contributors

isaacmg avatar tchang1997 avatar rloganiv avatar

Watchers

James Cloos 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.