Code Monkey home page Code Monkey logo

cord19's Introduction

COVID 19 Open Research Data Challenge Code

This repo contains code and notebooks for the COVID-19 Open Research Dataset Challenge (CORD-19) on kaggle

Using the library

On Kaggle

Clone and modify the Kaggle notebook

Off Kaggle

  1. Download the data

Login to Kaggle and download the CORD Research Challenge data and extract to a folder called data.

You can also use the kaggle cli bash kaggle datasets download allen-institute-for-ai/CORD-19-research-challenge `` 2. Install

Install the library using pip

pip install git+https://github.com/dgunning/cord19.git
dir data\CORD-19-research-challenge

Data directory

Usage

The library is meant for use in Jupyter or Kaggle notebooks

from cord import ResearchPapers

research_papers = ResearchPapers.load()

After loading the research papers you can display in a notebook

research_papers

Show research paper

Search

The search function returns the items that match the search query

research_papers.searchbar('vaccine transmission'

Cord Searchbar

Search Bar

A more convenient way to search is through the search bar. This displays a search widgets in Jupyter notebook

research_papers.searchbar('vaccine transmission')

Cord Searchbar

Selecting Subsets of Research Papers

There are many ways to select subsets of research papers including

  • Papers since SARS research_papers.since_sars()
  • Papers since SARS-COV-2 research_papers.since_sarscov2()
  • Papers before SARS research_papers.before_sars()
  • Papers before SARS-COV-2 research_papers.before_sarscov2()
  • Papers before a date research_papers.before('1989-09-12')
  • Papers after a date research_papers.after('1989-09-12')
  • Papers that contains a string research_papers.contains("Fauci", column='authors')
  • Papers that match a string (using regex) research_papers.match('H[0-9]N[0-9]')

Selecting individual Papers

You can select individual papers by using Python indexing []

research_papers[200]

Show research paper

cord19's People

Contributors

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