1
0
mirror of https://github.com/malarinv/jasper-asr.git synced 2026-03-09 10:52:35 +00:00

added evaluation command

This commit is contained in:
2020-07-09 14:36:51 +05:30
parent 069392d098
commit ae5586be72
3 changed files with 362 additions and 10 deletions

View File

@@ -163,16 +163,8 @@ def ui_dump_manifest_writer(output_dir, dataset_name, asr_data_source, verbose=F
)
)
num_datapoints += 1
with ThreadPoolExecutor() as exe:
print("starting all plot/transcription tasks")
dump_data = list(
tqdm(
exe.map(lambda x: x(), data_funcs),
position=0,
leave=True,
total=len(data_funcs),
)
)
dump_data = parallel_apply(lambda x: x(), data_funcs)
# dump_data = [x() for x in tqdm(data_funcs)]
ui_dump["data"] = dump_data
ExtendedPath(ui_dump_file).write_json(ui_dump)
return num_datapoints