下拉选择
从下拉菜单中进行单选,适用于较长的选项列表。
下拉选择标注
下拉选择类型提供一个下拉菜单用于单选。最适合选项较多(5个以上)且单选按钮会显得过于拥挤的情况。
基本配置
yaml
annotation_schemes:
- name: "category"
description: "Select the document category"
annotation_type: "select"
labels:
- name: "news"
- name: "opinion"
- name: "tutorial"
- name: "review"
- name: "other"配置选项
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
name | string | 是 | 标注的唯一标识符 |
description | string | 是 | 显示给标注者的说明 |
annotation_type | string | 是 | 必须为 "select" |
labels | array | 是 | 可选选项列表 |
default | string | 否 | 默认选中的选项 |
required | boolean | 否 | 是否要求必须选择 |
示例
文档分类
yaml
- name: "document_type"
description: "What type of document is this?"
annotation_type: "select"
labels:
- name: "Research Paper"
- name: "News Article"
- name: "Blog Post"
- name: "Technical Documentation"
- name: "Legal Document"
- name: "Marketing Material"
- name: "Personal Communication"
- name: "Other"
required: true语言选择
yaml
- name: "language"
description: "What language is this text written in?"
annotation_type: "select"
labels:
- name: "English"
- name: "Spanish"
- name: "French"
- name: "German"
- name: "Chinese"
- name: "Japanese"
- name: "Other"
default: "English"带工具提示
yaml
- name: "genre"
description: "Select the genre of this text"
annotation_type: "select"
labels:
- name: "Fiction"
tooltip: "Made-up stories and narratives"
- name: "Non-fiction"
tooltip: "Factual content based on real events"
- name: "Poetry"
tooltip: "Verse and poetic forms"
- name: "Drama"
tooltip: "Scripts and theatrical works"输出格式
下拉选择标注输出所选选项的名称:
json
{
"id": "item_1",
"annotations": {
"category": "tutorial"
}
}何时使用下拉选择还是单选
| 使用下拉选择 | 使用单选 |
|---|---|
| 5个以上选项 | 2-5个选项 |
| 标注者熟知选项 | 需要一次看到所有选项 |
| 空间有限 | 键盘快捷键很重要 |
| 较长的选项标签 | 需要快速视觉扫描 |
最佳实践
- 按逻辑排列选项 - 按字母顺序、按频率或按语义分组
- 包含"其他"选项 - 当列表可能不完整时
- 使用清晰、独特的标签 - 避免含糊或重叠的类别
- 设置合理的默认值 - 如果某个选项最常见,考虑将其设为默认