Closed Jeevesh8 closed 3 years ago
Can you share the sentence and context that produced an error with the current code?
Sorry. This was wrong. You have a while loop over text.. I didn't see that. My sentence was producing error due to other reasons. Thank you.
But, I came across another thing, while trying this out.. shouldn't this line have dictionary
instead of cmudict
? Or is this the intended behavior ?
Yes, that should be dictionary as there is no cmudict in that scope. Can you please put a PR?
@rafaelvalle sir, please see. I have added a necessary
else
, to avoid the error that comes when trying to access.group()
of theNone
returned by.match()
call.