mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-26 18:24:18 +00:00
fix style
This commit is contained in:
parent
46eab8b727
commit
6813b754e9
@ -128,7 +128,12 @@ def compute_fbank_wenetspeech(args):
|
||||
output_dir = Path("data/fbank")
|
||||
|
||||
dataset_parts = (
|
||||
"L", "M", "S", "DEV", "TEST_NET", "TEST_MEETING",
|
||||
"L",
|
||||
"M",
|
||||
"S",
|
||||
"DEV",
|
||||
"TEST_NET",
|
||||
"TEST_MEETING",
|
||||
)
|
||||
manifests = read_manifests_if_cached(
|
||||
dataset_parts=dataset_parts,
|
||||
|
@ -49,7 +49,12 @@ def preprocess_wenet_speech():
|
||||
output_dir.mkdir(exist_ok=True)
|
||||
|
||||
dataset_parts = (
|
||||
"L", "M", "S", "DEV", "TEST_NET", "TEST_MEETING",
|
||||
"L",
|
||||
"M",
|
||||
"S",
|
||||
"DEV",
|
||||
"TEST_NET",
|
||||
"TEST_MEETING",
|
||||
)
|
||||
|
||||
logging.info("Loading manifest (may take 10 minutes)")
|
||||
|
@ -40,8 +40,9 @@ def get_parser():
|
||||
parser.add_argument(
|
||||
"--skip-ncols", "-s", default=0, type=int, help="skip first n columns"
|
||||
)
|
||||
parser.add_argument("--space", default="<space>", type=str,
|
||||
help="space symbol")
|
||||
parser.add_argument(
|
||||
"--space", default="<space>", type=str, help="space symbol"
|
||||
)
|
||||
parser.add_argument(
|
||||
"--non-lang-syms",
|
||||
"-l",
|
||||
@ -49,8 +50,9 @@ def get_parser():
|
||||
type=str,
|
||||
help="list of non-linguistic symobles, e.g., <NOISE> etc.",
|
||||
)
|
||||
parser.add_argument("text", type=str, default=False, nargs="?",
|
||||
help="input text")
|
||||
parser.add_argument(
|
||||
"text", type=str, default=False, nargs="?", help="input text"
|
||||
)
|
||||
parser.add_argument(
|
||||
"--trans_type",
|
||||
"-t",
|
||||
|
Loading…
x
Reference in New Issue
Block a user