[WIP] Tiered annotations - #81
Open
hadware wants to merge 37 commits into
Open
Conversation
…ype hints should be good for the API objects.
# Conflicts: # pyannote/core/annotation.py # pyannote/core/segment.py # pyannote/core/timeline.py
# Conflicts: # pyannote/core/feature.py
…nts on the WIP Pull request.
…ailing in timeline.py. Added a type for LabelGenerator modes.
# Conflicts: # pyannote/core/segment.py
# Conflicts: # pyannote/core/segment.py
# Conflicts: # pyannote/core/segment.py
Contributor
Author
|
Alright, questions now:
|
Member
|
Thanks @hadware. Will look into this at some point... |
…ierarchy for the new Partition and Tiers classes
…overlapping to prevent errors while cropping.
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.
Old idea, finally took some time to implement it.
This is more or less an implementation of the Praat/Elan tiered structure. Here are a couple of key points for this
TieredAnnotationandTier. ATieredAnnotationis made out ofTiersTieredAnnotation[str, Tier[Segment,Label]]Tieris a thin wrapper over a timeline, used to keep store segments and take care of the cropping/support/etc-related operationsTieredAnnotationshouldn't have that many available methods other than:Tiers)pip install pyannote.core[textgrid]. This installstextgrid-parser, mysly-based parser.I'll follow up with a couple of questions to tune my implem to your preferences