Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

naw.RandomWordAug() doesn't have parameter aug_max #100

Closed
RenShuhuai-Andy opened this issue Feb 17, 2020 · 0 comments
Closed

naw.RandomWordAug() doesn't have parameter aug_max #100

RenShuhuai-Andy opened this issue Feb 17, 2020 · 0 comments

Comments

@RenShuhuai-Andy
Copy link

Hi~
init function of class naw.RandomWordAug doesn't have parameter aug_max:

class RandomWordAug(WordAugmenter):
    def __init__(self, action=Action.DELETE, name='RandomWord_Aug', aug_min=1, aug_p=0.3, stopwords=None,
                 target_words=None, tokenizer=None, reverse_tokenizer=None, stopwords_regex=None, verbose=0):
        super().__init__(
            action=action, name=name, aug_p=aug_p, aug_min=aug_min, stopwords=stopwords,
            tokenizer=tokenizer, reverse_tokenizer=reverse_tokenizer, device='cpu', verbose=verbose,
            stopwords_regex=stopwords_regex)

        self.target_words = ['_'] if target_words is None else target_words

I don't know if it was intentional or missed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant