Skip to main content

Parsing HTML chemistry papers from certain publishers into plain text

Project description

Chemistry Article Parser

Convert HTML/XML Chemistry/Material Science articles into plain text.

made-with-python Maintenance

Requirement

See requirements.txt.

Packages with versions specified in requirements.txt are used to test the code. Other versions are not fully tested but may also work.

Submodule

To get the submodule files, use

git submodule update --init

Supported publishers:

  • RSC (HTML)
  • Springer (HTML)
  • Nature (HTML)
  • Wiley (HTML)
  • AIP (HTML)
  • ACS (HTML & XML)
  • Elsevier (HTML & XML)
  • AAAS (Science) (HTML)

Table parsing is supported but not for all publishers. For figures, only figure captions are parsed in the current version.

Example

Fork this repo and clone it to your local machine;

To parse HTML files, run the following code:

python tests/parse_articles.py --input_dir </path/to/html/files> --parse_html

or

cd tests
python parse_articles.py config.json

where parameters are stored in file config.json.

Add --parse_xml to the argument list to enable xml parsing.

Issues

Due to the variety of HTML/XML documents, not all document can be successfully parsed. It would be helpful for our improvement if you can report the failed cases in the Issue section.

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

ChemistryPaperParser-0.0.1.tar.gz (28.1 kB view hashes)

Uploaded Source

Built Distribution

ChemistryPaperParser-0.0.1-py3-none-any.whl (30.5 kB view hashes)

Uploaded Python 3

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