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

Other language support #244

Closed
seungyoon-woo opened this issue Oct 8, 2021 · 2 comments
Closed

Other language support #244

seungyoon-woo opened this issue Oct 8, 2021 · 2 comments

Comments

@seungyoon-woo
Copy link

Hi nlpaug team.
I'm wondering if your team considering support other language of OcrAug (ex. korean)
Or is there other any I can use in custom way?

@makcedward
Copy link
Owner

makcedward commented Oct 18, 2021

Hi, Please free feel to contribute to it. OcrAug is designed to load a pre-defined JSON file or python dictionary object. You may have a look at the English version JSON file as reference or example of python object. Here is the structure

{
  source_character: ["list of alternative character"],
  source_character2: ["list of alternative character"]
}

You can either pass python object/ JSON file path to OcrAug

aug = nac.OcrAug(dict_of_path=mapping)
aug = nac.OcrAug(dict_of_path='./your_json_file.json')

nlpaug supports this feature from 1.1.8 (released on Oct 18, 2021)

@makcedward
Copy link
Owner

Supported in 1.1.8 version

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

2 participants