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

Alignment (visualization?) seems to be broken for languages that are written right-to-left #92

Open
YonatanOfek opened this issue Sep 19, 2024 · 0 comments

Comments

@YonatanOfek
Copy link

Inputting:

import jiwer

ref = 'לשמוליק הייתה כבשה ולה לא היה כלב יופי'

hyp = 'איזה כיף לשמוליקה אתה כבשה ולהלהלה כלב'

out = jiwer.process_words(ref, hyp)

print(jiwer.visualize_alignment(out))

outputs:

REF: לשמוליק הייתה כבשה ולה לא היה כלב יופי
HYP: איזה כיף לשמוליקה אתה כבשה ולהלהלה כלב ****
S S S S S S D

Which misses insertions, substitutions and deletions...

Is there a way to handle this?
Would you be interested in a PR?

Thanks
Yonatan.

@YonatanOfek YonatanOfek changed the title Alignment (visualization?) seems to be broken for left-to-right languages Alignment (visualization?) seems to be broken for right-to-left languages Sep 19, 2024
@YonatanOfek YonatanOfek changed the title Alignment (visualization?) seems to be broken for right-to-left languages Alignment (visualization?) seems to be broken for languages that are written right-to-left Sep 19, 2024
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