An augmentation library based on SpaCy for joint augmentation of text and labels.
Project description
Augmenty: The cherry on top of your NLP pipeline
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_md")
docs = nlp.pipe(["Augmenty is a great tool for text augmentation"])
entity_augmenter = augmenty.load("ents_replace.v1",
ent_dict = {"ORG": [["spaCy"], ["spaCy", "Universe"]]}, level=1)
for doc in augmenty.docs(docs, augmenter=entity_augmenter, nlp=nlp):
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
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
File details
Details for the file augmenty-1.0.4.tar.gz
.
File metadata
- Download URL: augmenty-1.0.4.tar.gz
- Upload date:
- Size: 44.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf26dfe549e22fc9ab6fe65354af680e7f0d2968fc4aaa8d0a11bcead619a1ce |
|
MD5 | 7b12f9c5cbbbfdf110986dc31bbf00bc |
|
BLAKE2b-256 | 30a531749f861ae076dd8700d42747185510c3e44b3f15d857d7e8213be69f3e |
File details
Details for the file augmenty-1.0.4-py2.py3-none-any.whl
.
File metadata
- Download URL: augmenty-1.0.4-py2.py3-none-any.whl
- Upload date:
- Size: 64.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4aaf6110ca1688882bb250e97a237da0da4c7c254902ef07df6166a763518810 |
|
MD5 | 3c5938d32a267515a760f8022cd3d212 |
|
BLAKE2b-256 | 3cadea204bf6f8104a622dcb1d2b235a1fb7fbfed6c72c19f2ae1181d294d9b3 |