Skip to content

セレクト(ドロップダウン)

長いオプションリストからドロップダウンメニューで単一選択。

セレクト(ドロップダウン)アノテーション

セレクトタイプは単一選択のためのドロップダウンメニューを提供します。ラジオボタンでは視覚的に煩雑になる、長いオプションリスト(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"

設定オプション

フィールドタイプ必須説明
namestringはいアノテーションの一意識別子
descriptionstringはいアノテーターに表示される指示
annotation_typestringはい"select"でなければならない
labelsarrayはい選択肢のリスト
defaultstringいいえデフォルトの選択オプション
requiredbooleanいいえ選択が必須かどうか

ドキュメント分類

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のオプション
アノテーターがオプションをよく知っているすべてのオプションを一度に見る必要がある
スペースが限られているキーボードショートカットが重要
長いオプションラベル素早い視覚的スキャンが必要

ベストプラクティス

  1. 論理的にオプションを並べる - アルファベット順、頻度順、またはセマンティックグループ別
  2. 「その他」オプションを含める - リストが網羅的でない可能性がある場合
  3. 明確で区別しやすいラベルを使用 - 曖昧または重複するカテゴリを避ける
  4. 適切なデフォルトを設定 - 最も一般的なオプションがある場合、デフォルトにすることを検討