ExmlDoc
exmldoc is a library for loading .exml.xml files either produced by PyTree or by the ExportXMLv2 Java library and assorted tools. The EXML file format is one of the file formats used for the TüBa-D/Z treebank of German and offers the possibility to store multilayer linguistic annotations in a (mostly) human-readable format.
As long as you are working with small documents, usage is relatively simple: load a document with
- ::
import exmldoc from exmldoc.tree import Tree
doc = exmldoc.load(‘file.exml.xml’)
you can then (for example) enumerate all sentences with:
- ::
- for sent in doc.get_objects_by_class(Tree):
print doc.words[sent.span[0]:sent.span[1]]
or access the token objects with
- ::
- for sent in doc.get_objects_by_class(Tree):
- for token in doc.w_objs[sent.span[0]:sent.span[1]]
print token.word, token.cat, token.lemma
You can change a document and then save it with
- ::
doc.save(‘file_processed.exml.xml’)
Metadata
Release files for exmldoc 1.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| exmldoc-1.0.9.tar.gz | 38.2 kB | Without provenance | Details for exmldoc-1.0.9.tar.gz |
Release files / exmldoc-1.0.9.tar.gz
| Download URL | exmldoc-1.0.9.tar.gz |
|---|---|
| Size | 38.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b39b7ce03db5a362d2fb5c476a26293c85c48f518b566e9653619ebd5ebc7859
|
|
BLAKE2b-256 checksum How to use checksums |
d4063aebeeb322a42e89c777e760396a8897d28ad4725d531f481e03d98b2e82
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for exmldoc 1.0.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.