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

Unexpected behaviour for readme example #23

Open
WeberJulian opened this issue Dec 29, 2021 · 0 comments
Open

Unexpected behaviour for readme example #23

WeberJulian opened this issue Dec 29, 2021 · 0 comments

Comments

@WeberJulian
Copy link
Contributor

WeberJulian commented Dec 29, 2021

from gruut import sentences

text = 'He wound it around the wound, saying "I read it was $10 to read."'

for sent in sentences(text, lang="en-us"):
    for word in sent:
        if word.phonemes:
            print(word.text, *word.phonemes)

produces with the last PyPI version

He h ˈi
wound w ˈaʊ n d
it ˈɪ t
around ɚ ˈaʊ n d
the ð ə
wound w ˈu n d
, |
saying s ˈeɪ ɪ ŋ
I ˈaɪ
read ɹ ˈɛ d
it ˈɪ t
was w ə z
to t ə
read ɹ ˈi d
. ‖

It seems that it skipped the ''ten dollars"

EDIT: from what I see, I can only get the right output when I go back to 1.3.1

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