-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
National Speech Corpus data prep, optimizations in Cut, limited expor…
…t to Kaldi data dir (#149) * NSC data prep * Supervisions indexing inside an interval tree in select CutSet operations * Kaldi data dir export (limited) * Immutable SupervisionSegment
- Loading branch information
Showing
11 changed files
with
440 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import click | ||
|
||
from lhotse.bin.modes import prepare | ||
from lhotse.recipes.nsc import NSC_PARTS, prepare_nsc | ||
from lhotse.utils import Pathlike | ||
|
||
|
||
@prepare.command(context_settings=dict(show_default=True)) | ||
@click.argument('corpus_dir', type=click.Path(exists=True, dir_okay=True)) | ||
@click.argument('output_dir', type=click.Path()) | ||
@click.option('-p', '--dataset-part', type=click.Choice(NSC_PARTS), default='PART3_SameCloseMic', | ||
help='Which part of NSC should be prepared') | ||
def nsc( | ||
corpus_dir: Pathlike, | ||
output_dir: Pathlike, | ||
dataset_part: str | ||
): | ||
""" | ||
This is a data preparation recipe for the National Corpus of Speech in Singaporean English. | ||
""" | ||
prepare_nsc(corpus_dir, dataset_part=dataset_part, output_dir=output_dir) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.