Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support preparing almost all NSC data part except PART3_SameBoundaryMic #1066

Merged
merged 7 commits into from
May 26, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 23 additions & 2 deletions lhotse/bin/modes/recipes/nsc.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,29 @@
default="PART3_SameCloseMic",
help="Which part of NSC should be prepared",
)
def nsc(corpus_dir: Pathlike, output_dir: Pathlike, dataset_part: str):
@click.option(
"-j",
"--num-jobs",
type=int,
default=1,
help="How many threads to use (can give good speed-ups with slow disks).",
)
def nsc(corpus_dir: Pathlike, output_dir: Pathlike, dataset_part: str, num_jobs: int):
"""
\b
This is a data preparation recipe for the National Corpus of Speech in Singaporean English.
CORPUS_DIR: root directory that contains all NSC shared folder. Eg.
├── IMDA - National Speech Corpus
│ ├── LEXICON
│ ├── PART1
│ ├── PART2
│ └── PART3
├── IMDA - National Speech Corpus - Additional
│ └── IMDA - National Speech Corpus (Additional)
│ ├── PART4
│ ├── PART5
│ └── PART6
"""
prepare_nsc(corpus_dir, dataset_part=dataset_part, output_dir=output_dir)
prepare_nsc(
corpus_dir, dataset_part=dataset_part, output_dir=output_dir, num_jobs=num_jobs
)
Loading