Skip to content
Discussion options

You must be logged in to vote

Thanks for your question! Since you posted this in the Coding & Implementations section, I assume that you'd like to use the augmenters from Python for further exploration. The augmenters themselves are functions that take a Language object and an Example and yield an augmented Example.

The best way to get an augmenter is to retrieve it by its registered name through the spaCy registry. For example, to get the spacy.lower_case.v1, you could use

registry.get("augmenters", "spacy.lower_case.v1")

This returns a function that constructs the augmenter when given the options specified for the augmenter. Since the lower case augmenter only has the level option, we should specify that. E.g.:

augm…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by qeterme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
usage General spaCy usage
2 participants