nlp_augmentation
Библиотека для аугментации текстовых данных на нескольких уровнях — от символов и слов до синтаксиса и генеративных моделей.
Возможности
- CharAugmentor — аугментация на уровне символов: удаление, вставка, замена, перестановка, изменение регистра.
- WordAugmentor — аугментация на уровне слов: удаление, вставка, синонимы, контекстная замена, морфологические преобразования, аббревиатуры, преобразование чисел.
- TextAugmentor — синтаксическая аугментация: перестановка предложений, удаление поддеревьев, парафраз, суммаризация, обратный перевод, crossover.
- Generator — генеративные методы на базе предобученных моделей Hugging Face.
Установка
pip install https://github.com/explosion/spacy-models/releases/download/en_core_web_md-3.8.0/en_core_web_md-3.8.0-py3-none-any.whl
pip install https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.8.0/en_core_web_sm-3.8.0-py3-none-any.whl
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121
nltk.download("stopwords")
nltk.download('wordnet')
nltk.download('punkt_tab')
pip install nlp_augmentation
Metadata
Release files for nlp-augmentation 1.1.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 |
|---|---|---|---|---|
| nlp_augmentation-1.1.1.tar.gz | 48.8 kB | Without provenance | Details for nlp_augmentation-1.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nlp_augmentation-1.1.1-py3-none-any.whl | Python 3 | none | any | Details for nlp_augmentation-1.1.1-py3-none-any.whl |
Total release size: 98.5 kB
Release files / nlp_augmentation-1.1.1.tar.gz
| Download URL | nlp_augmentation-1.1.1.tar.gz |
|---|---|
| Size | 48.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2a0f0daf3e7f824599f9474f6da1b620ef04c0272842e170909cf920e1d2cfd3
|
|
BLAKE2b-256 checksum How to use checksums |
4fe27fbd3d32150c616fdd39463ca55173ee82b23ef0226c05594fa95b86dc25
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.0
|
Release files / nlp_augmentation-1.1.1-py3-none-any.whl
| Download URL | nlp_augmentation-1.1.1-py3-none-any.whl |
|---|---|
| Size | 49.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
16d3dce31847ed7aace63bcf45ea024d99304f63cb3bdadbbd7ef5e709c62881
|
|
BLAKE2b-256 checksum How to use checksums |
1ee0fa29cfd04de2d758a986a5463644c549830efc4ff8b62cd7f586529983e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.0
|
Security for nlp-augmentation 1.1.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.