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 can I create templates for right to left languages? #49

Open
moeyad7 opened this issue Dec 17, 2023 · 0 comments
Open

How can I create templates for right to left languages? #49

moeyad7 opened this issue Dec 17, 2023 · 0 comments

Comments

@moeyad7
Copy link

moeyad7 commented Dec 17, 2023

I am trying to apply LM-BFF to some sentiment analysis datasets and Named Entity Recognition in Arabic. I am having difficulties in creating the templates as the order in which I write the template in is not what is outputted when I run the model.

12/17/2023 21:53:54 - INFO - __main__ -   | *cls**sent_0*كانت**mask*.*sep+* => *cls**sent_0*كانت**mask*.*sep+**sent_1*كانت**label_0*.*sep+**sent_2*كانت**label_1*.*sep+*

According to the pattern, I wrote the template should output [CLS] sent_0 كانت [MASK]. [SEP] sent_1 كانت [MASK]. [SEP] but the output that is returned is [CLS] كانت sent_0 [MASK]. [SEP] sent_1 كانت [MASK]. [SEP]. For some reason the first part of the template get switched I don't know if its because I am using a right to left language or if my template is wrong.

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

1 participant