Skip to content

How to train for RTL languages? #33

Description

@NaumanHSA

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions