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

Inconsistent behavior in moh_equiv #383

Open
MENGZHEGENG opened this issue Jun 23, 2024 · 1 comment
Open

Inconsistent behavior in moh_equiv #383

MENGZHEGENG opened this issue Jun 23, 2024 · 1 comment

Comments

@MENGZHEGENG
Copy link
Collaborator

If à is followed by some letter (except :), we have

>>> text="hnàh"
>>> transducer(text).output_string
'hnɑ̀ːh'

However, if à is followed nothing, we have

>>> text="hnà"
>>> transducer(text).output_string
'hnà'

By https://github.com/roedoejet/g2p/blob/main/g2p/mappings/langs/moh/moh_equiv.json, the second scenario satisfies the condition in {"in": "à", "out": "à:", "context_after": "[^:]"}, based on my understanding it should output

'hnà'ː

@MENGZHEGENG
Copy link
Collaborator Author

The similar phenomenon also occurs in the case èn, where èn can be the last character of one syllable

The same phenomenon also occurs in the case è or ì, where è or ì is the last character of one syllable

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