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

[formatter] Implement conversion to TextGrid (#4) #8

Merged
merged 6 commits into from
Mar 20, 2024

Conversation

chrisbrickhouse
Copy link
Member

Introduce a class which houses functions to convert the json output of the transcriber and diarizer into formats that can be input into various alignment software. This commitn introduces a conversion to TextGrids for use with MFA though other formats may be introduced later.

Introduce a class which houses functions to convert the json output of
the transcriber and diarizer into formats that can be input into various
alignment software. This commitn introduces a conversion to TextGrids
for use with MFA though other formats may be introduced later.
@chrisbrickhouse
Copy link
Member Author

Checks are expected to fail because of #5 so not bothering to run them rn

Tests of alignment and speaker assignment no longer test for equivalence
of start and end times or assignment weights because different machines
have slightly different results leading to failures. Instead, only the
transcriptions themselves are asserted to be equivalent.

Fixes #5
Introduce a class which houses functions to convert the json output of
the transcriber and diarizer into formats that can be input into various
alignment software. This commitn introduces a conversion to TextGrids
for use with MFA though other formats may be introduced later.
Lots of work arounds to handle the gaps between phrases in the
timestamps, but after looking at them, they should probably just be
included in the preceding segment because they tend to contain a fair
amount of speech.
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.13%. Comparing base (0f89a62) to head (fc231ce).
Report is 2 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main       #8       +/-   ##
===========================================
+ Coverage   62.92%   83.13%   +20.21%     
===========================================
  Files           2        4        +2     
  Lines          89      166       +77     
===========================================
+ Hits           56      138       +82     
+ Misses         33       28        -5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@chrisbrickhouse chrisbrickhouse merged commit 2b9efaf into main Mar 20, 2024
5 checks passed
@chrisbrickhouse chrisbrickhouse deleted the format-output branch April 11, 2024 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants