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
678ff5edaa
commit
417bb8f42b
Binary file not shown.
@ -797,7 +797,17 @@ def main():
|
||||
results = results_dict['greedy_search']
|
||||
#for res in results:
|
||||
# print(res[0], ' '.join(res[1]))
|
||||
jsons = open(f"{params.manifest_dir}/userlibri/{test_sets}/{option}.jsonl")
|
||||
jsons = open(f"{params.manifest_dir}/userlibri/{test_sets}/{option}.jsonl", 'r').readlines()
|
||||
|
||||
res_dict = {}
|
||||
for res in results:
|
||||
res_dict[res[0]] = ' '.join(res[1])
|
||||
for line in jsons:
|
||||
splited = line.split()
|
||||
text_idx = line.index('"text":')
|
||||
|
||||
|
||||
|
||||
|
||||
'''
|
||||
for test_set, test_dl in zip(test_sets, test_dl):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user