mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
from local
This commit is contained in:
parent
557868ccca
commit
53e0773ba4
Binary file not shown.
@ -804,7 +804,7 @@ def main():
|
||||
for line in jsons:
|
||||
splited = line.split()
|
||||
utt_id = splited[1][1:-2]
|
||||
text_idx = line.index('"text":')
|
||||
text_idx = splited.index('"text":')
|
||||
|
||||
pseudo = f'"pseudo text": "{res_dict[utt_id]}",'
|
||||
splited.insert(text_idx-1, pseudo)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user