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.3.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.3-py3-none-any.whl (47.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nxml2txt-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 c2af881a7b98b6544a3970393e6372c82153185d900c41d402b6eee28b97a992
MD5 06e88d129ff3923637d421f3907bc26e
BLAKE2b-256 fa2c8025022e212aa0fa54be42849448d5e30043db8c4a01619e0d5af19d0e93

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nxml2txt-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bb790115565ad7016774e60b8b6a49441e6c0e2830bd577b914d0d71a996ce02
MD5 347bd825245cbedcbcf44e9ebff4be24
BLAKE2b-256 0847646ae022d573c49649149df7d14dc1640fe004d3d90fcec6acf88600ee73

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