Repository navigation
Conversation
…nnotations_between_time` ; fixed some bug regarding that method and updated docstrings
text-slicer app feature now promoted to SDK
adding `audio_document_helper` in tandem with VDH
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #420 +/- ##
==========================================
+ Coverage 80.13% 81.15% +1.01%
==========================================
Files 28 30 +2
Lines 3630 3815 +185
==========================================
+ Hits 2909 3096 +187
+ Misses 721 719 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This release adds text and audio document helpers
utilspackage.Additions
audio_document_helper(addaudio_document_helperfor windowed audio reads #416)mmif.utils.audio_document_helper.iter_audio_windows(): decodes anAudioDocument, or the audio track of aVideoDocument, into fixed-length windows of monofloat32samples with millisecond start and end times.mmif.utils.timeunit_helper.iter_time_windows(): windows over a time interval in integer milliseconds, with a stride for overlapping windows or gapsmmif-python[av]extra: PyAV and NumPy only, for apps that read audio without needing OpenCV or Pillow.mmif-python[cv]now builds on top ofavextrasvideo_document_helperthrough the newmmif.utils.av_helper(with this,open_container(),get_framerate()andcapture()now raiseFileNotFoundErrorinstead ofValueErrorwhen no document is given)Changes
Mmif.get_annotations_between_time()(Incorporateapp-text-slicerfunctionality intotext_document_helperas the app is discontinued #417, also partially addresses Expand on time-based filtering of annotations #330)TimePoints raised aTypeErrorTimeFrameandTimePointin the MMIF must now be in integer milliseconds, otherwise aValueErroris raised. Note: this also applies to MMIF files produced by years-older apps that wrote seconds or frames.time_unitargument is deprecated and will be removed in 2.0.0. Givestartandendin millisecondstext_document_helper.slice_text()is deprecated, to be removed in 2.0.0. UseMmif.get_annotations_between_time(start, end, at_types=[AnnotationTypes.Token])instead (Incorporateapp-text-slicerfunctionality intotext_document_helperas the app is discontinued #417)