Get augmented data #12430
-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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 The best way to get an augmenter is to retrieve it by its registered name through the spaCy registry. For example, to get the 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
|
Beta Was this translation helpful? Give feedback.
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 anExample
andyield
an augmentedExample
.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 useThis 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.: