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

Bad cyrrillic simbols sometimes #50

Closed
PasaOpasen opened this issue May 24, 2020 · 2 comments
Closed

Bad cyrrillic simbols sometimes #50

PasaOpasen opened this issue May 24, 2020 · 2 comments

Comments

@PasaOpasen
Copy link

PasaOpasen commented May 24, 2020

So I use this code:

from epitran.backoff import Backoff

backoff = Backoff(['fas-Arab', 'rus-Cyrl'])
                  
backoff.transliterate('Привет дорогой друг пидор')

and it gives

'prʲivʲet doroɡoй druɡ pʲidor'

as u see, there is the russian й in result, which should be (maybe) j. Or am I wrong?

@dmort27
Copy link
Owner

dmort27 commented May 25, 2020

You are not wrong. There is a bug somewhere in Backoff (this is not a problem for epitran.transliterate). Also, you should present input to Epitran token-by-token rather than as a series of whitespace-delimited tokens, as this will sometimes produce the wrong result.

@PasaOpasen
Copy link
Author

Yes, this is not a problem for epitran.transliterate, it's okay

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