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

<unk> in parse_hyp_and_timestamp #1280

Open
RuslanSel opened this issue Sep 27, 2023 · 1 comment
Open

<unk> in parse_hyp_and_timestamp #1280

RuslanSel opened this issue Sep 27, 2023 · 1 comment

Comments

@RuslanSel
Copy link

In parse_hyp_and_timestamp()
after tokens = sp.id_to_piece(res.hyps[i]) I have such tokens:
▁', '', '-', 'mo', 'du', 'le',
then words = sp.decode_pieces(tokens).split() gives me two words instead of one
'⁇', '-module'
but time = parse_timestamp(tokens, time) treats these tokens like one word, and then
assert len(time) == len(words), (len(time), len(words))
AssertionError: (1, 2)

Thanks in advance.

@csukuangfj
Copy link
Collaborator

@yaozengwei Could you have a look?

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

2 participants