Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pkufool committed Aug 4, 2023
1 parent e04b0c8 commit 37db8a1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
14 changes: 6 additions & 8 deletions examples/libriheavy/matching.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,14 +361,12 @@ def write(
for seg in segments:
id = f"{current_cut.id}_{cut_segment_index[current_cut.id]}"
cut_segment_index[current_cut.id] += 1
custom = (
{
"texts": [seg["ref"], seg["hyp"]],
"pre_texts": [seg["pre_ref"], seg["pre_hyp"]],
"begin_byte": seg["begin_byte"],
"end_byte": seg["end_byte"],
},
)
custom = {
"texts": [seg["ref"], seg["hyp"]],
"pre_texts": [seg["pre_ref"], seg["pre_hyp"]],
"begin_byte": seg["begin_byte"],
"end_byte": seg["end_byte"],
}
if params.output_post_texts:
custom["post_texts"] = [seg["post_ref"], seg["post_hyp"]]
supervision = SupervisionSegment(
Expand Down
2 changes: 1 addition & 1 deletion examples/libriheavy/matching_parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def get_args():
parser.add_argument(
"--batch-size",
type=int,
default=100,
default=50,
help="""The number of cuts in a batch.
""",
)
Expand Down

0 comments on commit 37db8a1

Please sign in to comment.