Skip to content

Commit

Permalink
Set default duration limit factor to 1 for K2 Iterable Dataset (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
pzelasko authored Nov 23, 2020
1 parent 2a8bba9 commit 76d4e6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lhotse/dataset/speech_recognition.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def __init__(
shuffle: bool = False,
concat_cuts: bool = True,
concat_cuts_gap: Seconds = 1.0,
concat_cuts_duration_factor: float = 2
concat_cuts_duration_factor: float = 1
):
"""
K2 ASR IterableDataset constructor.
Expand All @@ -134,7 +134,7 @@ def __init__(
:param concat_cuts_gap: The duration of silence in seconds that is inserted between the cuts;
it's goal is to let the model "know" that there are separate utterances in a single example.
:param concat_cuts_duration_factor: Determines the maximum duration of the concatenated cuts;
by default it's twice the duration of the longest cut in the batch.
by default it's 1, setting the limit at the duration of the longest cut in the batch.
"""
super().__init__()
# Initialize the fields
Expand Down

0 comments on commit 76d4e6e

Please sign in to comment.