• Stars
    star
    148
  • Rank 249,983 (Top 5 %)
  • Language
    Python
  • License
    MIT License
  • Created over 3 years ago
  • Updated 6 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Augmenty is an augmentation library based on spaCy for augmenting texts.

Augmenty: The cherry on top of your NLP pipeline

PyPI version python version Code style: black github actions pytest github actions docs

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.
πŸ™‹ 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

More Repositories

1

asent

Asent is a python library for performing efficient and transparent sentiment analysis using spaCy.
Python
100
star
2

tomsup

tomsup πŸ‘ Theory of Mind Simulation using Python. A package that allows for easy agent-based modelling of recursive Theory of Mind
Jupyter Notebook
63
star
3

spacy-wrap

spaCy-wrap is a wrapper library for spaCy for including fine-tuned transformers from Huggingface in your spaCy pipeline allowing you to include existing fine-tuned models within your SpaCy workflow.
Python
40
star
4

scandinavian-embedding-benchmark

A Scandinavian Benchmark for sentence embeddings
Python
27
star
5

Exp-Meth-III-Tutorials

An series of tutorials for the course Experimental Methods III
12
star
6

pimp-my-github

A checklist for creating pleasing GitHub repos
6
star
7

swift-python-cookiecutter

A python package template intended for low maintenance and quick package development.
Python
4
star
8

tutorial_fine-tuning_danish_bert

An easy straightforward tutorial for finetuning a Danish BERT using simpletransformers
Jupyter Notebook
3
star
9

DeepAnon_NLP_exam

This repository contains the source code used for the DeepAnon exam project for cognitive science 2019-2020.
Python
2
star
10

OpenJournal

A discussion forum for discussing alternatives way for to scientific publishing.
1
star
11

Tutorial-Likelihood-Estimation

A tutorial script for likelihood estimation both in a bayesian and maximum likelihood perspective
HTML
1
star
12

snp-transformer

Python
1
star
13

Training_Danish_Spacy

Python
1
star
14

bag-of-tricks

KennethEnevoldsen package for personal utilities.
Python
1
star
15

Conspiracies

Jupyter Notebook
1
star
16

detecting-political-biases-using-sentiment-analysis

This is the scripts used for the paper, 'Analysing Political Biases in Danish Newspapers Using Sentiment Analysis'
R
1
star