Skip to main content

Data to Annotations

Synopsis

Adds annotations to an object that are extracted from an example set.

Description

The resulting object will be the same as the input but with the annotations extracted from an example set applied.

For a general introduction to annotations please have a look at the help of the Annotate operator.

Input

object

Any type of object can be connected to this port. The annotations will be applied to this object.

annotations

The annotations that should be attached to the object.

Output

object with annotations

The same object as passed to the input port, with changed annotations.

annotations

The same annotations as passed to the input port, unchanged.

Parameters

key attribute

The attribute which contains the names of the annotations to be created. Should be unique.

value attribute

The attribute which contains the values of the annotations to be created. If a value is missing, the respective annotation will be removed.

duplicate annotations

Indicates what should happen if duplicate annotation names are specified.

  • overwrite: If this option is selected, the values existing annotations will be simply overwritten.
  • ignore: If this option is selected, duplicate annotations are ignored and the value of the original annotation is kept.
  • error: If this option is selected, an error is displayed and the process stops if duplicate annotation names are found.

See Also

operator.annotate

operator.annotations_to_data