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
0a071ecf27
commit
fca11ea2f9
Binary file not shown.
Binary file not shown.
@ -1,6 +1,7 @@
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import re
|
import re
|
||||||
|
import glob
|
||||||
|
|
||||||
metafile = sys.argv[1]
|
metafile = sys.argv[1]
|
||||||
outdir = "texts"
|
outdir = "texts"
|
||||||
@ -32,4 +33,4 @@ for string in strings:
|
|||||||
# Create a new text file with the filename and write text2 to it
|
# Create a new text file with the filename and write text2 to it
|
||||||
filename = os.path.join(save_dir, filename)
|
filename = os.path.join(save_dir, filename)
|
||||||
with open(f"{filename}.txt", "w") as file:
|
with open(f"{filename}.txt", "w") as file:
|
||||||
file.write(text2)
|
file.write(text2)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user