Taxonomic Entity Augmentation (TEA)
TEA provides taxonomic entity augmentation for biological texts. It supports species-name substitution, strain-name scrambling, sentence windowing, token-budget handling, and token-level label materialisation from curated data.
Installation
python -m pip install taxonomic-entity-augmentation
Augmentation example
from bio_tea import TEA
class WhitespaceTokenizer:
def tokenize(self, text, **kwargs):
return text.split()
tea = TEA(WhitespaceTokenizer(), rseed=42)
print(tea.switch("Escherichia coli was measured in culture."))
print(tea.scramble("The strain ATCC 25922 was included.", ["ATCC 25922"], force_diff=True))
Dataset utility commands
The package includes command-line utilities for generated TEA example sets:
bio-tea-inspect --help
bio-tea-sample --help
bio-tea-validate --help
bio-tea-stats --help
bio-tea-qa --help
bio-tea-manifest-compare --help
Utilities that operate on curated TEA source data require TEA_curated_data. Download v1.1 and point TEA to the extracted directory:
wget https://github.com/tznurmin/TEA_curated_data/archive/refs/tags/v1.1.tar.gz -qO - | tar -xz
mv TEA_curated_data-1.1 TEA_curated_data
export TEA_CURATED_ROOT="$PWD/TEA_curated_data"
TEA_CURATED_DATA is also accepted. TEA_curated_data is external to TEA and
separately licensed.
Licence
- Code: Apache License 2.0
- Vendored UniProt organism list: Creative Commons Attribution 4.0, with data attribution
- TEA_curated_data is external and separately licensed
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 taxonomic_entity_augmentation-1.0.3.tar.gz.
File metadata
- Download URL: taxonomic_entity_augmentation-1.0.3.tar.gz
- Upload date:
- Size: 210.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89f2e505be48961f5aff34fc2945233828884579dd22d5819024aa8a0ca6b308
|
|
| MD5 |
37d91e4eda0a9fe87f8610619ca4a693
|
|
| BLAKE2b-256 |
f5b867a3b3e9656e895a00df38f5c5677f39ba1298e78e291a1a98aeb47ae116
|
Provenance
The following attestation bundles were made for taxonomic_entity_augmentation-1.0.3.tar.gz:
Publisher:
publish-pypi.yaml on tznurmin/bio-tea
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
taxonomic_entity_augmentation-1.0.3.tar.gz -
Subject digest:
89f2e505be48961f5aff34fc2945233828884579dd22d5819024aa8a0ca6b308 - Sigstore transparency entry: 2699063475
- Sigstore integration time:
-
Permalink:
tznurmin/bio-tea@f8f4385728051f9d11e2666f2946bb42bced68f7 -
Branch / Tag:
refs/tags/v1.0.3 - Owner: https://github.com/tznurmin
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yaml@f8f4385728051f9d11e2666f2946bb42bced68f7 -
Trigger Event:
release
-
Statement type:
File details
Details for the file taxonomic_entity_augmentation-1.0.3-py3-none-any.whl.
File metadata
- Download URL: taxonomic_entity_augmentation-1.0.3-py3-none-any.whl
- Upload date:
- Size: 232.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6665bb1a2045745172a3293c346917065bac6ac01a5097b91a9fbdf2955071c
|
|
| MD5 |
58ce383782e5a31807dcb31da18b47eb
|
|
| BLAKE2b-256 |
689aead36b5f2dcfcc8d5e5f8bd414eed3bc28f68088a9ed5a47e1abc3c12d6b
|
Provenance
The following attestation bundles were made for taxonomic_entity_augmentation-1.0.3-py3-none-any.whl:
Publisher:
publish-pypi.yaml on tznurmin/bio-tea
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
taxonomic_entity_augmentation-1.0.3-py3-none-any.whl -
Subject digest:
e6665bb1a2045745172a3293c346917065bac6ac01a5097b91a9fbdf2955071c - Sigstore transparency entry: 2699063528
- Sigstore integration time:
-
Permalink:
tznurmin/bio-tea@f8f4385728051f9d11e2666f2946bb42bced68f7 -
Branch / Tag:
refs/tags/v1.0.3 - Owner: https://github.com/tznurmin
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yaml@f8f4385728051f9d11e2666f2946bb42bced68f7 -
Trigger Event:
release
-
Statement type: