Skip to main content

XML formatted full-text articles to text format conversion. Standoff annotations for text and entities. Originally derived from 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.0.5.tar.gz (34.2 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.0.5-py2.py3-none-any.whl (40.9 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: nxml2txt-0.0.5.tar.gz
  • Upload date:
  • Size: 34.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.5

File hashes

Hashes for nxml2txt-0.0.5.tar.gz
Algorithm Hash digest
SHA256 2fa155a8a4fb564efee057ade4941a47b1dfe72567bca5a86c85305a37aea8f2
MD5 ab886d52bffcd3cb67ba7da566022ef9
BLAKE2b-256 7424faf8bf7d2119ec21b37013c1dbf74e60f90d6d31360a66be3171a2590833

See more details on using hashes here.

File details

Details for the file nxml2txt-0.0.5-py2.py3-none-any.whl.

File metadata

  • Download URL: nxml2txt-0.0.5-py2.py3-none-any.whl
  • Upload date:
  • Size: 40.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.5

File hashes

Hashes for nxml2txt-0.0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e222d89603e80d8499970f7d3af7dcd96a85bbc1626df7a6b870a39e149a398b
MD5 cb048b25bdf3b3d01f7ab8edccba9856
BLAKE2b-256 24c6dd913daa1820790e5a9fd907a47ed88def782a6482673fd280bbd1a580b0

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