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
f269169c43
commit
94e34ec4bf
Binary file not shown.
@ -811,13 +811,13 @@ def main():
|
|||||||
except: pass
|
except: pass
|
||||||
|
|
||||||
for k, v in res_dict:
|
for k, v in res_dict:
|
||||||
v = v.strip()
|
#v = v.strip()
|
||||||
if len(v) < 10:
|
#if len(v) < 10:
|
||||||
continue
|
# continue
|
||||||
utt_id = '-'.join(k.split('-')[:-1])
|
utt_id = '-'.join(k.split('-')[:-1])
|
||||||
print(utt_id)
|
print(utt_id)
|
||||||
f = open(f'/DB/LibriSpeech_tar/vox/{params.spk_id}_texts/{utt_id}.txt', 'w')
|
f = open(f'/DB/LibriSpeech_tar/vox/{params.spk_id}_texts/{utt_id}.txt', 'w')
|
||||||
f.write(v.strip())
|
f.write(v)
|
||||||
print(k, v)
|
print(k, v)
|
||||||
exit()
|
exit()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user