Skip to content

Commit

Permalink
Added tests for segment resizer
Browse files Browse the repository at this point in the history
  • Loading branch information
beveradb committed Jan 7, 2025
1 parent 3c247d0 commit 98b0d10
Show file tree
Hide file tree
Showing 4 changed files with 738 additions and 171 deletions.
2 changes: 1 addition & 1 deletion lyrics_transcriber/output/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def generate_outputs(
outputs.original_txt = self.plain_text.write_original_transcription(transcription_corrected, output_prefix)

# Resize corrected segments to ensure none are longer than max_line_length
resized_segments = self.segment_resizer.resize_segments(transcription_corrected.corrected_segments)
resized_segments = self.segment_resizer.resize_segments(transcription_corrected.corrected_segments[:2])
transcription_corrected.resized_segments = resized_segments
outputs.corrections_json = self.write_corrections_data(transcription_corrected, output_prefix)

Expand Down
Loading

0 comments on commit 98b0d10

Please sign in to comment.