Skip to main content

Invenio module to interact with Grobid API for metadata extraction.

Project description

https://img.shields.io/travis/inspirehep/invenio-grobid.svg https://img.shields.io/coveralls/inspirehep/invenio-grobid.svg https://img.shields.io/github/tag/inspirehep/invenio-grobid.svg https://img.shields.io/pypi/dm/invenio-grobid.svg https://img.shields.io/github/license/inspirehep/invenio-grobid.svg

Invenio module to interact with Grobid API for metadata extraction from PDF.

This is an experimental developer preview release.

Features

This module provide an interface for uploading PDFs to a Grobid instance and allows to submit extracted metadata to a configurable callback.

NOTE: This packages assumes you have setup a local Grobid REST service. For more information about this and more, read the official Grobid documentation.

Installation

pip install invenio-grobid

Note that you also need a running Grobid REST service.

Configuration

Add invenio_grobid package to your Invenio PACKAGES config in your overlay/config.py to be picked up by the Invenio application loader.

Configure the URL to your Grobid REST service with GROBID_HOST.

inveniomanage config set GROBID_HOST 'http://localhost:8080'

If you want to change your standard upload handler after extraction, update GROBID_RESULT_HANDLER.

inveniomanage config set GROBID_RESULT_HANDLER 'my_overlay.grobid:upload_handler'

Usage

The uploader interface is available under the /grobid endpoint by default. E.g. http://localhost:4000/grobid

  • Choose a PDF to extract metadata from and hit Upload.

  • Wait a bit and metadata will be displayed.

  • Click on Submit button to push the metadata to your GROBID_RESULT_HANDLER

Special thanks to Joseph Boyd (@jcboyd) and Gilles Louppe (@glouppe) for Grobid support.

Happy hacking and thanks for flying Invenio Grobid.

Changes

Version 0.1.0 (released 2015-10-09)

  • Initial public release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

invenio-grobid-0.1.0.tar.gz (238.9 kB view details)

Uploaded Source

File details

Details for the file invenio-grobid-0.1.0.tar.gz.

File metadata

File hashes

Hashes for invenio-grobid-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fc052ff1b14eb63aa30f850f6744b3f6f5868740aedaf5ea0d63ed4be7a75fa7
MD5 ef68524c30d9458579861c851f51480f
BLAKE2b-256 1e7ac61193854d608e124611bccd8ad19b036ed55d298abc828c8c6ec174fec1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page