base_augment#
- class BaseAugment(create_n=1, aug_n=None, aug_percent=0.1, aug_min=1, aug_max=10, vocab='vocab')[源代码]#
基类:
object
A base class for data augmentation
- 参数:
create_n (int) -- Number of augmented sequences.
aug_n (int) -- Number of augmented words in sequences.
aug_percent (int) -- Percentage of augmented words in sequences.
aug_min (int) -- Minimum number of augmented words in sequences.
aug_max (int) -- Maximum number of augmented words in sequences.