Skip to content

soundchoice-g2p on HF emits <eos> symbol (which HF tests don't expect) #2656

@asumagic

Description

@asumagic

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingconfirmedBug officially confirmed or reproducible; discuss resolution or start writing PRregressionFunctionality that used to work was confirmed broken by a change (incl. modules, models, recipes)

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions