mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
fix
This commit is contained in:
parent
7df8452a85
commit
3266665f3d
@ -101,8 +101,7 @@ class TargetDelayTransformer():
|
||||
mini_sentence = mini_sentence[0:sentenceEnd + 1]
|
||||
punctuations = punctuations[0:sentenceEnd + 1]
|
||||
|
||||
punctuations_np = punctuations.cpu().numpy()
|
||||
new_mini_sentence_punc += [int(x) for x in punctuations_np]
|
||||
new_mini_sentence_punc += [int(x) for x in punctuations]
|
||||
words_with_punc = []
|
||||
for i in range(len(mini_sentence)):
|
||||
if i > 0:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user