Universe

Augmenty Logo

Augmenty

The cherry on top of your NLP pipeline

Augmenty on GitHubAugmenty on GitHubAugmenty on GitHub

Augmenty is an augmentation library based on spaCy for augmenting texts. Augmenty differs from other augmentation libraries in that it corrects (as far as possible) the token, sentence and document labels under the augmentation.

Example

import spacy import augmenty nlp = spacy.load('en_core_web_md') docs = nlp.pipe(['Augmenty is a great tool for text augmentation']) ent_dict = {'ORG': [['spaCy'], ['spaCy', 'Universe']]} entity_augmenter = augmenty.load('ents_replace.v1', ent_dict = ent_dict, level=1) for doc in augmenty.docs(docs, augmenter=entity_augmenter, nlp=nlp): print(doc)
Author info

Kenneth Enevoldsen

GitHubkennethenevoldsen/augmenty

Categories training research

Found a mistake or something isn't working?

If you've come across a universe project that isn't working or is incompatible with the reported spaCy version, let us know by opening a discussion thread.


Submit your project

If you have a project that you want the spaCy community to make use of, you can suggest it by submitting a pull request to the spaCy website repository. The Universe database is open-source and collected in a simple JSON file. For more details on the formats and available fields, see the documentation. Looking for inspiration your own spaCy plugin or extension? Check out the project idea section in Discussions.

Read the docsJSON source