mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-10 17:44:20 +00:00
updated
This commit is contained in:
parent
441aa37e00
commit
c061307c90
@ -47,7 +47,7 @@ def get_parser():
|
|||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--training-subset",
|
"--training-subset",
|
||||||
type=str,
|
type=str,
|
||||||
default="L",
|
default="train_phase1",
|
||||||
help="The training subset for computing fbank feature.",
|
help="The training subset for computing fbank feature.",
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -93,7 +93,7 @@ def compute_fbank_kespeech_splits(args):
|
|||||||
subset = args.training_subset
|
subset = args.training_subset
|
||||||
subset = str(subset)
|
subset = str(subset)
|
||||||
num_splits = args.num_splits
|
num_splits = args.num_splits
|
||||||
output_dir = f"data/fbank/{subset}_split_{num_splits}"
|
output_dir = f"data/fbank/KeSpeech/{subset}_split_{num_splits}"
|
||||||
output_dir = Path(output_dir)
|
output_dir = Path(output_dir)
|
||||||
assert output_dir.exists(), f"{output_dir} does not exist!"
|
assert output_dir.exists(), f"{output_dir} does not exist!"
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ def has_no_oov(
|
|||||||
|
|
||||||
def preprocess_kespeech():
|
def preprocess_kespeech():
|
||||||
src_dir = Path("data/manifests/KeSpeech")
|
src_dir = Path("data/manifests/KeSpeech")
|
||||||
output_dir = Path("data/fbank")
|
output_dir = Path("data/fbank/KeSpeech")
|
||||||
output_dir.mkdir(exist_ok=True)
|
output_dir.mkdir(exist_ok=True)
|
||||||
|
|
||||||
# Note: By default, we preprocess all sub-parts.
|
# Note: By default, we preprocess all sub-parts.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user