-
-
Notifications
You must be signed in to change notification settings - Fork 462
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
Reducing the number of replaced characters #3
Labels
bug
Something isn't working
Comments
In coming release, "aug_word_p" and "aug_char_p" parameters will be introduced to Character Augmenter (OcrAug, QwertyAug, RandomCharAug). It controls the percentage of word (or character) for augmentation. Example |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Edward, thank you for this great work.
I'm trying to use the QwertyAug augmenter, but I'm having some issues controlling the number of replaced characters.
For instance:
This results in waaay too many characters being replaced:
I saw that there are some parameters that affect the amount of characters. For instance, if I pass
aug_p = 0.00000000000000001
still way too many characters get replaced. Now I show a test with the sentence "why is my credit card still blocked?":There's barely any meaning in this sentence anymore.
The aug_p seems to be the correct parameter. If I pass 1, then all characters change.
Is there a way to further reduce the chance that a given character gets replaced? Ideally, in a sentence with that size, I'd like to replace like 2 or 3 characters.
The text was updated successfully, but these errors were encountered: