Describe the bug
HF API tests fail on v1.0.1 for soundchoice-g2p because the <eos> symbol is being emitted when it seems like it shouldn't be.
Expected behaviour
<eos> probably shouldn't be emitted? Need to figure out where the regression comes from.
To Reproduce
from speechbrain.inference.text import GraphemeToPhoneme
g2p = GraphemeToPhoneme.from_hparams("speechbrain/soundchoice-g2p", savedir="pretrained_models/soundchoice-g2p")
text = "To be or not to be, that is the question"
phonemes = g2p(text)
print(phonemes)
['T', 'UW', ' ', 'B', 'IY', ' ', 'AO', 'R', ' ', 'N', 'AA', 'T', ' ', 'T', 'UW', ' ', 'B', 'IY', ' ', 'DH', 'AE', 'T', ' ', 'IH', 'Z', ' ', 'DH', 'AH', ' ', 'K', 'W', 'EH', 'S', 'CH', 'AH', 'N', '<eos>']
Environment Details
Current develop
Relevant Log Output
No response
Additional Context
No response
Describe the bug
HF API tests fail on v1.0.1 for
soundchoice-g2pbecause the<eos>symbol is being emitted when it seems like it shouldn't be.Expected behaviour
<eos>probably shouldn't be emitted? Need to figure out where the regression comes from.To Reproduce
['T', 'UW', ' ', 'B', 'IY', ' ', 'AO', 'R', ' ', 'N', 'AA', 'T', ' ', 'T', 'UW', ' ', 'B', 'IY', ' ', 'DH', 'AE', 'T', ' ', 'IH', 'Z', ' ', 'DH', 'AH', ' ', 'K', 'W', 'EH', 'S', 'CH', 'AH', 'N', '<eos>']Environment Details
Current
developRelevant Log Output
No response
Additional Context
No response