Skip to main content

<Rating>

Category: Control tag

The Rating tag adds a rating selection to the labeling interface. Use for labeling tasks involving ratings.

Use with the following data types: audio, image, HTML, paragraphs, text, time series, video.

Attributes​

AttributeTypeRequiredDefaultDescription
namestringyes—Name of the element
toNamestringyes—Name of the element that you want to label
maxRatingnumberno5Maximum rating value
defaultValuenumberno0Default rating value
sizesmall,medium,largenomediumRating icon size
hotkeystringyes—HotKey for changing rating value
requiredtrue,falsenofalseWhether rating validation is required
requiredMessagestringno—Message to show if validation fails
perRegiontrue,falseno—Use this tag to rate regions instead of the whole object
perItemtrue,falseno—Use this tag to rate items inside the object instead of the whole object

Examples​

Basic labeling configuration to rate the content of a text passage​

<View>
<Text name="txt" value="$text" />
<Rating name="rating" toName="txt" maxRating="10" icon="star" size="medium" />
</View>