Skip to main content

XML formatted full-text articles to text format conversion. Standoff annotations for text and entities. Originally written by Sampo Pyysalo: https://github.com/spyysalo/nxml2txt

Project description

nxml2txt

NLM .nxml to text format conversion

Usage:

./nxml2txt NXMLFILE [TEXTFILE] [SOFILE]

For example (using test document):

./nxml2txt test/PMC3357053.nxml test/PMC3357053.txt test/PMC3357053.so

This creates the files test/PMC3357053.txt, containing the text content of the input document, and test/PMC3357053.so, containing the annotations (XML elements and their attributes) in a simple standoff format.

nxml2txt assumes a unix-like environment. If the input .nxml file contains embedded TeX-math, nxml2txt requires LaTeX and catdvi.

This tool was originally introduced as part of the BioNLP Shared Task 2011 supporting resources (https://github.com/ninjin/bionlp_st_2011_supporting).

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

nxml2txt-0.1.2.tar.gz (41.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nxml2txt-0.1.2-py3-none-any.whl (47.8 kB view details)

Uploaded Python 3

File details

Details for the file nxml2txt-0.1.2.tar.gz.

File metadata

  • Download URL: nxml2txt-0.1.2.tar.gz
  • Upload date:
  • Size: 41.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.5 Darwin/23.6.0

File hashes

Hashes for nxml2txt-0.1.2.tar.gz
Algorithm Hash digest
SHA256 71d717729d9f4a5b60c223c9f142334f27bca0d5f25d8a556af7f8486e4fd1b5
MD5 4c3c791bf56bf7688b76af560e5c362f
BLAKE2b-256 c7bce3c5d14977e9eb7951a4695654435debf5adcdafdc403d7b8dfee0d5937e

See more details on using hashes here.

File details

Details for the file nxml2txt-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: nxml2txt-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 47.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.5 Darwin/23.6.0

File hashes

Hashes for nxml2txt-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fd65b3bc1e65a43dfba68ed679f32747b60754595b01fb596caff8ebe73e05b6
MD5 9b37fcc7a37d1e642a925277bd8ce706
BLAKE2b-256 0bd1ff90b0d60c945494b1c22672aefff60d2aeb2faa38a478085e9b50d266c0

See more details on using hashes here.

Supported by

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