Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Whether is this a bug? #207

Open
DaaLiang opened this issue Feb 21, 2024 · 0 comments
Open

Whether is this a bug? #207

DaaLiang opened this issue Feb 21, 2024 · 0 comments

Comments

@DaaLiang
Copy link

DaaLiang commented Feb 21, 2024

Should a line be add after

prosodys = prosody_prob.argmax(axis=1).tolist()

by:
#prosodys = prosodys[1:-1]

e.g. --text 今天天气很不错哟
original: 今天天气很不错哟 => sil j in1 #0 t ian1 #0 t ian1 #2 q i4 #0 h en3 #2 b u4 #1 c uo4 #0 ^ io5 #4
after fix: 今天天气很不错哟 => sil j in1 #0 t ian1 #2 t ian1 #0 q i4 #2 h en3 #1 b u4 #0 c uo4 #0 ^ io5 #4

bug from:
in L63 other two tokens for BERT were added and are not considerted after
#tokens = ['[CLS]'] + [str(x) for x in text] + ['[SEP]']

@DaaLiang DaaLiang changed the title Whether this is a bug? Whether is this a bug? Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant