Coder Social home page Coder Social logo

contentmine_dockerized's Introduction

Contentmine Dockerized

Dockerfile to build a contentmine container including getpapers, norma and ami.

Find the contentmine project here.

Installation

Install from docker hub with:

docker pull regtm/contentmine

Build locally with:

docker build -t regtm/contentmine .

Usage

The contentmine script can simply be used this way (dont forget to make it executable chmod +x ./contentmine):

./contentmine $TOOL $PARAMETERS

Example

  1. Fetch papers from PubMed:

    ./contentmine getpapers --query querystring --xml --limit 100 -o ./data

    A description of the query string format can be found at the europepmc documentation: https://europepmc.org/Help#mostofsearch

  2. Convert fulltext XML files to "scholarly" html:

    ./contentmine norma -q ./ -i fulltext.xml -p scholarly.html --transform nlm2html

Manual Usage

Initially the data folder has to be created on the host and made readable for all to avoid permission issues inside the container:

mkdir -p data
chmod -R a+rw data

The container can be used via terminal/comandline. Replace $TOOL with the tool from contentmine that you want to use:

docker run --rm --volume "${PWD}/data":/data --tty --interactive regtm/contentmine $TOOL

contentmine_dockerized's People

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.