BREAKING CHANGE: source now refers to a Source object, the FE that
created the Feature is now referred to by feature_extractor; path is
dropped
This should be more consistent, plus we needed a reference to the
original Source kept around anyway -- path worked but a Source object is
more consistent and explicit about intent
interval -- Interval: time of feature in the media file
source -- the source of the feature (ie feature extractor) (default: "unknown")
path -- the path to the media file
source -- the original Source of the media (a Source object)
feature_extractor -- the feature extractor that created this Feature (default: "unknown")
score -- the score of the feature (eg laughter confidence score, [0, 1] = { x ∈ ℝ | 0 ≤ x ≤ 1 }) (default: 0.0)
Notes:
- score is notionally in the closed interval [0, 1], but this is not enforced -- it is up to the feature extractor to ensure this (or use scores outside this range if desired -- eg a feature manually selected by user input might have a score of 2.0 so it is sorted 'above' other features)
- sorts based on interval, then source, then score
- path should never be unknown, since we need it to make clips from
- sorts based on interval, then feature_extractor, then score
- source should never be unknown, since we need it to make clips from
"""
# TODO: consider renaming score to something more generic