In the Gruut example a line is missing. A NameError name 'word' is not defined is issued.
The correct code example should be :
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)
In the Gruut example a line is missing. A NameError
name 'word' is not defined
is issued.The correct code example should be :