structured_labels.labels
, provides a simple and intuitive way to store files and associated labels when you want to upload multi-label samples using the Data Ingestion API. The structure and organization are designed to provide clear, index-based labeling for various segments of a data file.
version
: Indicates the version of the label format.type
: Specifies the type of labeling method - use structured-labels
.structuredLabels
: This is an object that maps file names to arrays of labels. Where each key represents the name of a file, and its value is an array of objects, each containing:
startIndex
and endIndex
(milliseconds): These keys define the start and end of the segment within the file that the label applies to, allowing for precise segmentation of data. Note that no missing values are allowed. e.g. the next segment after "endIndex": 300
needs to be "startIndex": 301
label
: A string that represents the label assigned to the range between startIndex
and endIndex
.