question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

For I'm, it's, I'll, you're, I've, I'd

See original GitHub issue
>>> g2p('It\'s')
['IH1', 'T', ' ', 'EH1', 'S'] # Should be ['IH1', 'T', ' ', 'S']
>>> g2p('I\'m')
['AY1', ' ', 'AH0', 'M'] # Should be ['AY1', ' ', 'M']
's
S
Z
'll
L
've
V
'd
D
're
R
't
T
'm
M

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Kyubyongcommented, Dec 31, 2019

You’re right. I’ve corrected by changing the word tokenizer from nltk.word_tokenize to TweetTokenizer. Try again. Thanks!

0reactions
begeekmyfriendcommented, Jan 3, 2020

Hi, another tiny problem. The new TweetTokenizer cannot distinguish punctuation and abbreviation as follows. The original tokenizer seems good for it.

>>> from g2p_en import G2p
>>> g2p = G2p()
>>> ''.join(g2p('8 p.m.'))
'EY1T PIY1 . EH1M .'
Read more comments on GitHub >

github_iconTop Results From Across the Web

The Goo Goo Dolls – Iris Lyrics - Genius
Iris Lyrics: And I'd give up forever to touch you / 'Cause I know that you feel me somehow / You're the closest...
Read more >
Goo Goo Dolls - Iris [Official Music Video] - YouTube
Goo Goo Dolls is a rock band renowned for their hits “Iris,” “Slide ... feel me somehow You're the closest to heaven that...
Read more >
Lewis Capaldi - Forget Me (Official Video) - YouTube
... know I cross your mind Babe oh I Even after all it'd still wreck me To find out you'd know how to...
Read more >
(Everything I Do) I Do It For You (Official Music Video) - YouTube
This song was written by Bryan Adams and Mutt Lange around a piece of film music by composer Michael Kamen. This trio of...
Read more >
Lewis Capaldi - Fade (Official Audio) - YouTube
Your browser can't play this video. ... fade away And when I'm just about to pass the point of it all You come...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found