テキスト・数値入力
アノテーション用の自由形式テキストおよび数値入力。
テキスト・数値入力
テキストと数値入力により、アノテーターは自由形式の応答を提供できます。修正、説明、カウント、測定などに便利です。
テキスト入力
基本的なテキストフィールド
単一行テキスト入力:
yaml
annotation_schemes:
- annotation_type: text
name: correction
description: "Provide a corrected version of the text"テキストエリア(複数行)
長い応答用:
yaml
- annotation_type: text
name: explanation
description: "Explain your reasoning"
textarea: trueプレースホルダーテキスト
入力例でアノテーターをガイド:
yaml
- annotation_type: text
name: summary
description: "Write a one-sentence summary"
placeholder: "Enter your summary here..."文字数制限
応答の長さを制限:
yaml
- annotation_type: text
name: title
description: "Suggest a title"
min_length: 10
max_length: 100必須テキスト
フィールドを必須にする:
yaml
- annotation_type: text
name: justification
description: "Why did you choose this label?"
required: true数値入力
基本的な数値フィールド
yaml
annotation_schemes:
- annotation_type: number
name: count
description: "How many entities are mentioned?"範囲制限
最小値と最大値を設定:
yaml
- annotation_type: number
name: rating
description: "Rate from 1 to 10"
min: 1
max: 10ステップサイズ
増分精度を制御:
yaml
- annotation_type: number
name: percentage
description: "What percentage is relevant?"
min: 0
max: 100
step: 5 # Increments of 5小数
浮動小数点値を許可:
yaml
- annotation_type: number
name: score
description: "Confidence score"
min: 0.0
max: 1.0
step: 0.1デフォルト値
デフォルトを事前入力:
yaml
- annotation_type: number
name: count
description: "Number of errors"
default: 0
min: 0スライダー入力
数値入力の視覚的な代替:
yaml
- annotation_type: slider
name: confidence
description: "How confident are you?"
min: 0
max: 100
step: 1ラベル付きスライダー
端点ラベルを追加:
yaml
- annotation_type: slider
name: agreement
description: "How much do you agree?"
min: 0
max: 100
min_label: "Strongly Disagree"
max_label: "Strongly Agree"スライダー表示オプション
現在の値を表示:
yaml
- annotation_type: slider
name: rating
min: 0
max: 100
show_value: true一般的なユースケース
テキスト修正タスク
yaml
annotation_schemes:
- annotation_type: radio
name: has_error
description: "Does this text contain errors?"
labels:
- "Yes"
- "No"
- annotation_type: text
name: corrected_text
description: "Provide the corrected version"
textarea: true
show_if:
scheme: has_error
value: "Yes"翻訳品質
yaml
annotation_schemes:
- annotation_type: slider
name: adequacy
description: "How much meaning is preserved?"
min: 0
max: 100
min_label: "None"
max_label: "All"
- annotation_type: slider
name: fluency
description: "How natural does it sound?"
min: 0
max: 100
min_label: "Incomprehensible"
max_label: "Perfect"
- annotation_type: text
name: improved_translation
description: "Suggest a better translation (optional)"
textarea: true
required: falseエンティティカウント
yaml
annotation_schemes:
- annotation_type: number
name: person_count
description: "How many people are mentioned?"
min: 0
max: 50
- annotation_type: number
name: org_count
description: "How many organizations are mentioned?"
min: 0
max: 50
- annotation_type: number
name: location_count
description: "How many locations are mentioned?"
min: 0
max: 50フィードバック収集
yaml
annotation_schemes:
- annotation_type: likert
name: difficulty
description: "How difficult was this task?"
size: 5
min_label: "Very Easy"
max_label: "Very Hard"
- annotation_type: text
name: feedback
description: "Any additional feedback?"
textarea: true
required: false
placeholder: "Share your thoughts..."根拠付き品質評価
yaml
annotation_schemes:
- annotation_type: radio
name: quality
description: "Rate the quality"
labels:
- Excellent
- Good
- Fair
- Poor
- annotation_type: text
name: justification
description: "Explain your rating"
textarea: true
required: true
min_length: 20バリデーション
テキストバリデーション
yaml
- annotation_type: text
name: email
description: "Enter contact email"
validation:
pattern: "^[a-zA-Z0-9+_.-]+@[a-zA-Z0-9.-]+$"
message: "Please enter a valid email address"数値バリデーション
数値はmin/maxに対して自動的にバリデーションされます:
yaml
- annotation_type: number
name: year
description: "Enter the year"
min: 1900
max: 2024
validation_message: "Year must be between 1900 and 2024"キーボードナビゲーション
テキストと数値フィールドは標準のキーボードナビゲーションをサポート:
Tabでフィールド間を移動Enterで送信(単一行テキストの場合)- 矢印キーで数値の増減
出力形式
テキストと数値のアノテーションは直接保存されます:
json
{
"id": "doc1",
"correction": "The corrected text goes here.",
"count": 5,
"confidence": 85
}完全な例:ドキュメントレビュー
yaml
task_name: "Document Review"
annotation_schemes:
# Quality rating
- annotation_type: likert
name: quality
description: "Overall document quality"
size: 5
min_label: "Poor"
max_label: "Excellent"
# Error count
- annotation_type: number
name: error_count
description: "Number of errors found"
min: 0
max: 100
default: 0
# Confidence slider
- annotation_type: slider
name: confidence
description: "How confident are you in this assessment?"
min: 0
max: 100
show_value: true
# Detailed feedback
- annotation_type: text
name: errors_found
description: "List the errors you found"
textarea: true
placeholder: "Describe each error..."
# Summary
- annotation_type: text
name: summary
description: "Brief summary of the document"
max_length: 280
placeholder: "Summarize in one sentence..."ベストプラクティス
- 適切な入力タイプを使用 - 連続値にはスライダー、正確なカウントには数値
- 適切な制約を設定 - min/max値で無効なデータを防止
- プレースホルダーを提供 - 期待される形式についてアノテーターをガイド
- 任意フィールドを明確に -
required: falseを使用し、説明に明記 - 条件付き表示を使用 - 必要な場合のみテキストフィールドを表示
- バリデーションを検討 - メールアドレスやIDなどの構造化入力にはパターンを使用