A Python wrapper for the Grobid scholarly information extraction library
Note: For pygrobid
to function the Java server must be started and running. pygrobid
does not (yet) start Java side of things up itself. Currently it can be started from the root directory with:
cd pygrobid && mvn exec:exec -Pstart_grobid`
Then you can do:
from pygrobid import Grobid, start_server
start_server()
g = Grobid()
g.process_references('some_pdf_file.pdf')
g.shutdown()
GROBID (or Grobid) means GeneRation Of BIbliographic Data.
GROBID is a machine learning library for extracting, parsing and re-structuring raw documents such as PDF into structured TEI-encoded documents with a particular focus on technical and scientific publications. First developments started in 2008 as a hobby. In 2011 the tool has been made available in open source. Work on GROBID has been steady as side project since the beginning and is expected to continue until at least 2020 :)
For a list of features and more information, see the Kermitt2/Grobid repo.
These are required for running Grobid.
- Java 1.8+
- Apache Maven
pip install pygrobid && python -c 'import pygrobid; pygrobid.get_dependencies()'
This package is license under Apache License 2.0, the same license as the base Java library.