Skip to main content

Multi-level text augmentation library for NLP tasks

Project description

nlp_augmentation_library

nlp_augmentation_library — это современная библиотека для аугментации текстовых данных на нескольких уровнях: символном, словесном, синтаксическом и генеративном. Она предназначена для повышения качества моделей обработки естественного языка (NLP) путем расширения объема и разнообразия обучающих данных.


Возможности

  • CharAugmentor — аугментация на уровне символов: удаление, вставка, замена, перестановка, изменение регистра.
  • WordAugmentor — аугментация на уровне слов: удаление, вставка, синонимы, контекстная замена, морфологические преобразования, аббревиатуры, преобразование чисел.
  • TextAugmentor — синтаксическая аугментация: перестановка предложений, удаление поддеревьев, парафраз, суммаризация, обратный перевод, crossover.
  • Generator — генеративные методы на базе предобученных моделей Hugging Face.

Установка

Рекомендуется использовать Python версии 3.7 и выше.

pip install nlp_augmentation_library

pip install git+https://github.com/PrithivirajDamodaran/Parrot_Paraphraser.git
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==2.6.0+cu124 torchvision==0.21.0+cu124 torchaudio==2.6.0+cu124 --extra-index-url https://download.pytorch.org/whl/cu124
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu121

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nlp_augmentation-1.0.5.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nlp_augmentation-1.0.5-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file nlp_augmentation-1.0.5.tar.gz.

File metadata

  • Download URL: nlp_augmentation-1.0.5.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.0

File hashes

Hashes for nlp_augmentation-1.0.5.tar.gz
Algorithm Hash digest
SHA256 fc1c9ef43f177ff830e28d11d302748b597bdb0cdaf775f80f8155bff82b95f8
MD5 6e934da12c8a463e313dc56473d4eb20
BLAKE2b-256 43573f2c9866814d5e645673aed1665c9988b2ff3d8ce1688f8e528cca712b51

See more details on using hashes here.

File details

Details for the file nlp_augmentation-1.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for nlp_augmentation-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 9917faf07ffff4c373035bc3e009a817eb873a7ed7f99bde836abeba26d6eb63
MD5 068707099db713d03c8c17be76b51cc8
BLAKE2b-256 44ee8b8088b5989b0f31b0cb437c39567d4c51b691348bf2959e3257d9c3bcc1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page