Skip to content

單選與多選

單選和多選標註類型。

單選按鈕和多選核取方塊是分類任務中最常見的標註類型。

單選按鈕

當標註者應選擇恰好一個選項時使用單選按鈕。

基本配置

yaml
annotation_schemes:
  - annotation_type: radio
    name: sentiment
    description: "Select the sentiment of this text"
    labels:
      - Positive
      - Negative
      - Neutral

帶鍵盤快捷鍵

新增鍵盤快捷鍵以加快標註速度:

yaml
annotation_schemes:
  - annotation_type: radio
    name: sentiment
    description: "Select the sentiment"
    labels:
      - Positive
      - Negative
      - Neutral
    sequential_key_binding:
      Positive: "1"
      Negative: "2"
      Neutral: "3"

帶工具提示

為每個選項提供額外的上下文:

yaml
annotation_schemes:
  - annotation_type: radio
    name: sentiment
    description: "Select the sentiment"
    labels:
      - Positive
      - Negative
      - Neutral

多選

帶核取方塊的多選標註介面,可勾選所有適用的標籤核取方塊讓標註者一次選中所有適用標籤

當標註者可以選擇多個選項時使用多選。

基本配置

yaml
annotation_schemes:
  - annotation_type: multiselect
    name: topics
    description: "Select all topics that apply"
    labels:
      - Politics
      - Sports
      - Technology
      - Entertainment
      - Science

帶最少/最多選擇限制

約束選擇數量:

yaml
annotation_schemes:
  - annotation_type: multiselect
    name: topics
    description: "Select 1-3 topics"
    labels:
      - Politics
      - Sports
      - Technology

樣式選項

水平佈局

水平而非垂直顯示選項:

yaml
annotation_schemes:
  - annotation_type: radio
    name: rating
    labels:
      - "1"
      - "2"
      - "3"
      - "4"
      - "5"

自定義顏色

為標籤分配顏色:

yaml
annotation_schemes:
  - annotation_type: radio
    name: sentiment
    labels:
      - Positive
      - Negative
      - Neutral

最佳實踐

  1. 保持標籤簡潔 - 使用簡短、清晰的標籤名稱
  2. 使用鍵盤快捷鍵 - 顯著加快標註速度
  3. 為含糊的標籤新增工具提示 - 有助於確保一致性
  4. 限制選項數量 - 過多的選擇會減慢標註者的速度
  5. 按邏輯排列 - 最常見的選項放在前面,或按字母順序排列