-
-
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
Add Custom Dictionary of OCR-Augment #241
Comments
Enhanced to support this scenario. You may download the dev version (pip install git+https:/makcedward/nlpaug.git) for trail. You may either pass dict or json file path when initializing OCRAug augmenter. The format should be key and a list of possible alternatives. As your example, it should be Here is the example of pass dict
You can also pass json file path as parameter. |
Supported in 1.1.8 version |
Hi, nlpaug team! I am using your tool to do a OCR shape-alike data augmentation. Could I specify our own Dict {'o'->0, 'd'->'cl'} when doing the augmentation?
The text was updated successfully, but these errors were encountered: