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

Uploaded Python 3

File details

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

File metadata

  • Download URL: nxml2txt-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 3f4715c32c5d8fab40e13527c59d37d61a2be276db95a091527f11aae5a5c2e5
MD5 35009e1347af8182bc965bf99b58729d
BLAKE2b-256 a47378cb7d0ab795f614223b943c9f4a2f9dcfdea48fac6bf0603dd48de507cc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nxml2txt-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 02ea99da0ea745755bfa33ef06a34ac2af553584ff7448b7cf3f1b6806d95852
MD5 aa508c324a9e0bce5c0659d2abe85eef
BLAKE2b-256 43c7ffe3a2a7d3e468dfcd31ce4d27489c2e1e3460f020d038d1fb92e23bd587

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