FluidLabelSet is a container associating identifiers with labels.
Read more about FluidLabelSet on the learn platform.
server |
The Server on which to construct this object |
Add a label to the FluidLabelSet.
identifier |
The identifier for this label. |
label |
The label to add. |
action |
A function to execute when the server has completed running addLabel |
Retrieve the label associated with an identifier. Will report an error if the identifier is not present in the set.
identifier |
The identifier for the label to be retrieved. |
action |
A function to execute when the server has completed running getLabel |
Delete a label given a certain identifier.
identifier |
The identifier to be deleted. |
action |
A function to execute when the server has completed running deleteLabel |
Update a label for a given identifier in the label set.
identifier |
The identifier for this label. |
label |
The label to update. |
action |
A function to execute when the server has completed running updateLabel |
Set a label for a given identifier.
identifier |
The identifier for this label. |
label |
The label to update. |
action |
A function to execute when the server has completed running setLabel |
Merge sourceLabelSet in the current LabelSet. It will replace the label with the same identifier if overwrite is set to 1.
sourceLabelSet |
The source LabelSet to be merged. |
overwrite |
A flag to allow overwrite labels with the same identifier. |
action |
A function to execute when the server has completed running merge |
Dump the state of this object as a Dictionary.
action |
A function to execute when the server has completed running dump |
Replace the internal state of the object from a Dictionary.
dict | |
action |
A function to execute when the server has completed running load |
Post an abbreviated content of the label set in the window by default, but you can supply a custom action instead.
action |
A function to execute when the server has completed running print |
The number of data points (entries / observations) in this model or dataset / labeset
action |
A function to execute when the server has completed running size |
The number of columns (dimensions) in this model or dataset / labeset
action |
A function to execute when the server has completed running cols |
Empty the label set and reset to a clean state.
action |
A function to execute when the server has completed running clear |
Save the contents of the object to a JSON file on disk.
filename |
Path of the file to load from |
action |
A function to execute when the server has completed running write |
Replace the internal state of the object from a JSON file on disk.
filename |
Path of the file to load from |
action |
A function to execute when the server has completed running read |
Export the LabelSet identifier to a FluidLabelSet.
labelSet |
The FluidLabelSet to export to. Its content will be replaced. |
action |
A function to execute when the server has completed running getIds |
Labeling Audio Analyses
Other Messages
Dictionary interface
Merging