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

How to train for RTL languages? #33

Open
NaumanHSA opened this issue May 29, 2024 · 2 comments
Open

How to train for RTL languages? #33

NaumanHSA opened this issue May 29, 2024 · 2 comments

Comments

@NaumanHSA
Copy link

I'm trying to use code from this repo to train OCR for Arabic language. Additionally, the dataset has hand written text which makes it even complicated, but this is just for learning purposes.

I trained a model without any modifications to the workflow and the model architecture except for the dataset class. The model is giving me 0 WA and CA. So, I wanted to ask what possible changes we need to make the model learn?

So far, I'm trying to reverse the targets as Arabic is an RTL language unlike English. And to pad the images to the left instead of right. I'd like to hear your thoughts on this. Thanks.

@Deepayan137
Copy link
Owner

Hi Nauman, sorry for the late response, but right now I don't have any ready solution for it. Maybe you can look at repos that already do Arabic OCR. I have never worked with Arabic, so I am not sure of the technical nuances that would be required to modify my code.

@NaumanHSA
Copy link
Author

Hi @Deepayan137,
Thank you for your response. I've been working on my own solution for Arabic. Your repo was a help for me.

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