mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
update infer
This commit is contained in:
parent
9a27d02b78
commit
7260053660
@ -415,12 +415,12 @@ class SeacoParaformer(BiCifParaformer, Paraformer):
|
|||||||
token, timestamp)
|
token, timestamp)
|
||||||
|
|
||||||
result_i = {"key": key[i], "text": text_postprocessed,
|
result_i = {"key": key[i], "text": text_postprocessed,
|
||||||
"timestamp": time_stamp_postprocessed, "raw_text": text
|
"timestamp": time_stamp_postprocessed, "raw_text": copy.copy(text_postprocessed)
|
||||||
}
|
}
|
||||||
|
|
||||||
if ibest_writer is not None:
|
if ibest_writer is not None:
|
||||||
ibest_writer["token"][key[i]] = " ".join(token)
|
ibest_writer["token"][key[i]] = " ".join(token)
|
||||||
ibest_writer["raw_text"][key[i]] = text
|
# ibest_writer["raw_text"][key[i]] = text
|
||||||
ibest_writer["timestamp"][key[i]] = time_stamp_postprocessed
|
ibest_writer["timestamp"][key[i]] = time_stamp_postprocessed
|
||||||
ibest_writer["text"][key[i]] = text_postprocessed
|
ibest_writer["text"][key[i]] = text_postprocessed
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user