Skip to main content

An augmentation library based on SpaCy for joint augmentation of text and labels.

Project description

Augmenty: The cherry on top of your NLP pipeline

PyPI version python version Code style: black github actions pytest github actions docs github coverage CodeFactor Streamlit App

Augmenty is an augmentation library based on spaCy for augmenting texts. Besides a wide array of highly flexible augmenters, Augmenty provides a series of tools for working with augmenters, including combining and moderating augmenters. Augmenty differs from other augmentation libraries in that it corrects (as far as possible) the assigned labels under the augmentation, thus making many of the augmenters valid for training in a wider range of tasks.

🔧 Installation

To get started using augmenty simply install it using pip by running the following line in your terminal:

pip install augmenty

Do note that this is a minimal installation. As some augmenters requires additional packages please write the following line to install all dependencies.

pip install augmenty[all]

For more detailed instructions on installing augmenty, including specific language support, see the installation instructions.

🍒 Simple Example

The following shows a simple example of how you can quickly augment text using Augmenty. For more on using augmenty see the usage guides.

import spacy
import augmenty

nlp = spacy.load("en_core_web_sm")

docs = nlp.pipe(["Augmenty is a great tool for text augmentation"])

entity_augmenter = augmenty.load("ents_replace.v1", 
                                 ent_dict = {{"ORG": [["spaCy"], ["spaCy", "Universe"]]})

for doc in augmenty.docs(docs, augmenter=entity_augmenter)
    print(doc)
spaCy Universe is a great tool for text augmentation.

📖 Documentation

Documentation
📚 Usage Guides Guides and instructions on how to use augmenty and its features.
📰 News and changelog New additions, changes and version history.
🎛 API References The detailed reference for augmenty's API. Including function documentation
🍒 Augmenters Contains a full list of current augmenters in augmenty.
😎 Demo A simple Streamlit demo to try out the augmenters.
🙋 FAQ Frequently asked question regarding augmenty

💬 Where to ask questions

Type
🚨 Bug Reports GitHub Issue Tracker
🎁 Feature Requests & Ideas GitHub Issue Tracker
👩‍💻 Usage Questions GitHub Discussions
🗯 General Discussion GitHub Discussions
🍒 Adding an Augmenter Adding an augmenter

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

augmenty-0.0.11.tar.gz (42.0 kB view details)

Uploaded Source

Built Distribution

augmenty-0.0.11-py2.py3-none-any.whl (60.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file augmenty-0.0.11.tar.gz.

File metadata

  • Download URL: augmenty-0.0.11.tar.gz
  • Upload date:
  • Size: 42.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for augmenty-0.0.11.tar.gz
Algorithm Hash digest
SHA256 d72ad299ffbf9a61d52af451ace9f3cdfe0d098ade68f00ad48be0de02f07a76
MD5 1e52cf11b88817631dfa049860bf43f6
BLAKE2b-256 8fb1d811e6d82f1275844fd766509a7d70c634b8942065b0339d111d0786b16d

See more details on using hashes here.

File details

Details for the file augmenty-0.0.11-py2.py3-none-any.whl.

File metadata

  • Download URL: augmenty-0.0.11-py2.py3-none-any.whl
  • Upload date:
  • Size: 60.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for augmenty-0.0.11-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 31dffc7c11b5d266d4bbf32c52c042c13236e1be89b5186807a3841d19b874ee
MD5 531c00527859ac03be187cc9b2b66fa0
BLAKE2b-256 7056dab8b976bb1ebfda7f444e13dbcdb50b5b94bcc2d9775388fe0d73322072

See more details on using hashes here.

Supported by

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