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

Mid-word hyphens are removed, should be treated similar to spaces #31

Open
Sobsz opened this issue May 8, 2022 · 0 comments
Open

Mid-word hyphens are removed, should be treated similar to spaces #31

Sobsz opened this issue May 8, 2022 · 0 comments

Comments

@Sobsz
Copy link

Sobsz commented May 8, 2022

For example, running G2P on "text-to-speech" returns ['T', 'EH1', 'K', 'S', 'T', 'S', 'P', 'EH2', 'K'], the same as "texttospeech", when it should return something closer to ['T', 'EH1', 'K', 'S', 'T', ' ', 'T', 'UW1', ' ', 'S', 'P', 'IY1', 'CH'], the result for "text to speech" (though the stress could use some adjustment).

Simple workaround for now: use .replace("-", " ") on the input being passed in.

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