滑块
使用可拖动滑块进行连续数值输入。
滑块标注
滑块类型提供一个可拖动的滑块,用于在范围内选择数值。适用于置信度评分、强度得分或任何连续数值输入。
基本配置
yaml
annotation_schemes:
- name: "confidence"
description: "How confident are you in this answer?"
annotation_type: "slider"
min: 0
max: 100
step: 1
default: 50配置选项
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
name | string | 是 | 标注的唯一标识符 |
description | string | 是 | 显示给标注者的说明 |
annotation_type | string | 是 | 必须为 "slider" |
min | number | 是 | 滑块最小值 |
max | number | 是 | 滑块最大值 |
step | number | 否 | 步进值(默认:1) |
default | number | 否 | 滑块初始位置 |
min_label | string | 否 | 最小端标签 |
max_label | string | 否 | 最大端标签 |
show_value | boolean | 否 | 显示当前值(默认:true) |
示例
置信度评分
yaml
- name: "confidence"
description: "How confident are you in your annotation?"
annotation_type: "slider"
min: 0
max: 100
step: 5
default: 50
min_label: "Not confident at all"
max_label: "Completely confident"
show_value: true强度量表
yaml
- name: "intensity"
description: "Rate the emotional intensity of this text"
annotation_type: "slider"
min: 1
max: 10
step: 1
default: 5
min_label: "Very mild"
max_label: "Very intense"百分比输入
yaml
- name: "agreement"
description: "What percentage of people would agree with this statement?"
annotation_type: "slider"
min: 0
max: 100
step: 1
default: 50
show_value: true输出格式
滑块标注输出一个数值:
json
{
"id": "item_1",
"annotations": {
"confidence": 75
}
}何时使用滑块还是数字输入
- 当您希望标注者在连续量表上进行快速、直觉性选择时,使用滑块
- 当您需要精确值或范围非常大时,使用数字输入
最佳实践
- 设置合理的默认值 - 将默认位置放在有意义的位置(通常是中点)
- 使用端点标签 - 帮助标注者理解量表代表什么
- 选择合适的步长 - 细粒度区分用较小步长,粗略评分用较大步长
- 保持范围直观 - 0-100 或 1-10 对大多数标注者来说都很熟悉