You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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
{'o'->0, 'd'->'cl'}
Here is the example of pass dict
mapping = {'o': ['0'], 'd': 'cl'}
aug = OcrAug(dict_of_path=mapping)
You can also pass json file path as parameter. aug = OcrAug(dict_of_path='sample.json')
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: