mindmeld.augmentation module¶
This module contains the data augmentation processes for MindMeld.
-
class
mindmeld.augmentation.Augmentor(language, paths, path_suffix, resource_loader)[source]¶ Bases:
abc.ABCAbstract Augmentor class.
-
class
mindmeld.augmentation.AugmentorFactory(config, language, resource_loader)[source]¶ Bases:
objectCreates an Augmentor object.
-
config¶ dict -- A model configuration.
-
language¶ str -- Language for data augmentation.
-
resource_loader¶ object -- Resource Loader object for the application.
-
create_augmentor()[source]¶ Creates an augmentor instance using the provided configuration
Returns: An Augmentor class Return type: Augmentor Raises: ValueError-- When model configuration is invalid or required key is missing
-
-
class
mindmeld.augmentation.EnglishParaphraser(batch_size, language, retain_entities, paths, path_suffix, resource_loader)[source]¶ Bases:
mindmeld.augmentation.AugmentorParaphraser class for generating English paraphrases.
-
class
mindmeld.augmentation.MultiLingualParaphraser(batch_size, language, retain_entities, paths, path_suffix, resource_loader)[source]¶ Bases:
mindmeld.augmentation.AugmentorParaphraser class for generating paraphrases based on language code of the app (currently supports: French, Italian, Portuguese, Romanian and Spanish).