tags
- Introduction
Objects
- Audio
- AudioPlus
- HyperText
- Image
- Text
Controls
- BrushLabels
- Choice
- Choices
- Ellipse
- EllipseLabels
- HyperTextLabels
- KeyPoint
- KeyPointLabels
- Label
- Labels
- List
- Pairwise
- Polygon
- PolygonLabels
- Ranker
- Rating
- Rectangle
- RectangleLabels
- Relation
- Relations
- Shortcut
- TextArea
- Filter
Visual & Experience
- Header
- Style
- Table
- View
Ranker
Ranker tag, used to ranking models
Ranker has a complex mechanics and uses only the “prediction” field from the input task,
please explore input task example carefully.
It renders given list of strings and allows to drag and reorder them.
To see this tag in action you have to use Input task example json below as task
on “Import” page:
1) setup given config,
2) go to Import,
3) copy-paste json to the input field and submit,
4) start the labeling.
Parameters
Param | Type | Default | Description |
---|---|---|---|
name | string |
of group | |
[axis] | y | x |
y |
axis direction |
sortedHighlightColor | string |
sorted color |
Example
<View>
<Text name="txt-1" value="$text"></Text>
<Ranker name="ranker-1" toName="txt-1" ranked="true" sortedHighlightColor="red"></Ranker>
<Ranker name="ranker" value="$items"></Ranker>
</View>
Example
Input task example
[{
"data": {
"text": "Some text for ranker"
},
"predictions": [{
"model_version": "1564027355",
"result": [{
"from_name": "ranker-1",
"to_name": "ranker-1",
"type": "ranker",
"value": {
"items": ["abc", "def", "ghk", "more more more", "really long text"],
"weights": [1.00, 0.78, 0.75, 0.74, 0.74],
"selected": [false, false, false, false, false]
}
}],
"score": 1.0
}]
}]