Inception Webanno tsv
Read and write webanno tsv 3.2 files
Install
pip install git+https://github.com/Pangeamt/web_anno_tsv
Read a webanno tsv file
from web_anno_tsv import open_web_anno_tsv
tsv1 = 'test.tsv'
with open_web_anno_tsv(tsv1) as f:
for i, sentence in enumerate(f):
print(f"Sentence {i}:", sentence.text)
for j, annotation in enumerate(sentence.annotations):
print(f'\tAnnotation {j}:')
print('\t\tText:', annotation.text)
print("\t\tLabel:", annotation.label)
print("\t\tOffsets", f"{annotation.start}, {annotation.stop}")
Write a webanno tsv file
from web_anno_tsv import open_web_anno_tsv
tsv1 = 'test.tsv'
tsv2 = 'test_write.tsv'
with open_web_anno_tsv(tsv1) as f1:
with open_web_anno_tsv(tsv2, 'w') as f2:
for sentence in f1:
f2.write(sentence)
Metadata
Release files for web-anno-tsv 0.0.1
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 |
|---|---|---|---|---|
| web_anno_tsv-0.0.1.tar.gz | 5.4 kB | Without provenance | Details for web_anno_tsv-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| web_anno_tsv-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for web_anno_tsv-0.0.1-py3-none-any.whl |
Total release size: 11.3 kB
Release files / web_anno_tsv-0.0.1.tar.gz
| Download URL | web_anno_tsv-0.0.1.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7295f93f67c09098ebe230de3bcfe809d1bfb7ed452d220df6db53355b8ba1d7
|
|
BLAKE2b-256 checksum How to use checksums |
030df6b3a611baf34cfca6e70d75087ae8c023e28078181c60ad0c2065a72c1c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.7.8
|
Release files / web_anno_tsv-0.0.1-py3-none-any.whl
| Download URL | web_anno_tsv-0.0.1-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6d553d055489c900a0f2b483a8a31c584dcc177442b1f1f83e2c5f0a982ac580
|
|
BLAKE2b-256 checksum How to use checksums |
cf1f6764f71d2adfafd27621c6c785e315ea3e006a1a65a7bb00ad58256ce6ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.7.8
|
Security for web-anno-tsv 0.0.1
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.