A 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 more than simply sentence classification.
📖 Documentation
Documentation | |
---|---|
🔧 Installation | Installation instructions |
📚 Usage Guides | Guides and instruction on how to use augmenty and its features. |
🍒 Augmenters | Contains a full list of current and planned augmenters in augmenty. |
📰 News and changelog | New additions, changes and version history. |
🎛 API Reference | The detailed reference for augmenty's API. Including function documentation |
💬 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 |
🤔 FAQ
How do I test the code and run the test suite?
augmenty comes with an extensive test suite. In order to run the tests, you'll usually want to clone the repository and build augmenty from the source. This will also install the required development dependencies and test utilities defined in the requirements.txt.
pip install -r requirements.txt
pip install pytest
python -m pytest
which will run all the test in the augmenty/tests
folder.
Specific tests can be run using:
python -m pytest augmenty/tests/test_readability.py
Code Coverage If you want to check code coverage you can run the following:
pip install pytest-cov
python -m pytest--cov=.
Does augmenty run on X?
augmenty is intended to run on all major OS, this includes Windows (latest version), MacOS (Catalina) and the latest version of Linux (Ubuntu). Below you can see if augmenty passes its test suite for the system of interest. The first one indicated Linux. Please note these are only the systems augmenty is being actively tested on, if you run on a similar system (e.g. an earlier version of Linux) augmenty will likely run there as well.
Operating System | Status |
---|---|
Ubuntu (Latest) | |
MacOS (Catalina) | |
Windows (Latest) |
How is the documentation generated?
augmenty uses sphinx to generate documentation. It uses the Furo theme with a custom styling.
To make the documentation you can run:
# install sphinx, themes and extensions
pip install sphinx furo sphinx-copybutton sphinxext-opengraph
# generate html from documentations
make -C docs html
🎓 Citing this work
If you use this library in your research, please cite:
@inproceedings{augmenty2021,
title={Augmenty, the cherry on top of your NLP pipeline},
author={Enevoldsen, Kenneth and Hansen, Lasse},
year={2021}
}
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-0.0.1.tar.gz
.
File metadata
- Download URL: augmenty-0.0.1.tar.gz
- Upload date:
- Size: 34.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98058d21bc9c599f38f905144dd2f7fe4e2294828db1773b99814b4984eab9f8 |
|
MD5 | d2f0e7f1bbbfe39541a6ba7133f9a7f1 |
|
BLAKE2b-256 | cdc2b24036dcb55d0fc05d6a137ea93477d3627d7691806ef51c54f163ca0560 |
File details
Details for the file augmenty-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: augmenty-0.0.1-py3-none-any.whl
- Upload date:
- Size: 47.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7229e8e1b6a21a9875dba2b0d85c3b1ff1ae05f80a640fe561389c37ea2bd2a9 |
|
MD5 | 00d18109aaebf9dbb6bed17d0b1b12f1 |
|
BLAKE2b-256 | 12f2427e7a7589b700949cbbeb5676238d2871c04eff4bf98cf83d023a2dba5c |