Convert a given text with spans to BIO tags.
Project description
#Span converter
Convert a given text with spans to BIO tags. Allows overlapping spans.
Installation
pip install span-converter
Get started
` from span_converter import SpanConverter
converter=SpanConverter("pl")
result=converter.convert("tu mam tekst, kolejny już.", [{'start': 14, 'end': 21, 'label': 'uuu'}])
`
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file span-converter-0.1.0.tar.gz.
File metadata
- Download URL: span-converter-0.1.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.14 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5430979c3f864a9a8dae478df2beb4eba773f98893b7e0eb7b48cdfbd1954bb1
|
|
| MD5 |
c99c13fe9ae33203cc0226ada53c6418
|
|
| BLAKE2b-256 |
5e5a2b01a3d4b37006e086a91e9bbffc66eff743b51b0a521d5b9d49cb4a31c3
|
File details
Details for the file span_converter-0.1.0-py3-none-any.whl.
File metadata
- Download URL: span_converter-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.14 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c844fc5b3aadfbc7d0e5d9bb37dd7aeecb94a69ed191dfeb856c0beb1cc9fd7
|
|
| MD5 |
5a327c3f468ac1602b257ac048e55c2b
|
|
| BLAKE2b-256 |
c0d45c1f5b1971136b697c6bf5c6cae046d5103b16efe0ae8ebce515e86b0246
|