Skip to content
هذه الصفحة غير متوفرة بلغتك بعد. يتم عرض النسخة الإنجليزية.

Text- und Zahleneingabe

Freitexteingabe und numerische Eingabe für Annotationen.

Text- und Zahleneingabe

Text- und Zahleneingaben ermöglichen Annotatoren freie Antworten, nützlich für Korrekturen, Erklärungen, Zählungen und Messungen.

Texteingabe

Einfaches Textfeld

Einzeilige Texteingabe:

yaml
annotation_schemes:
  - annotation_type: text
    name: correction
    description: "Provide a corrected version of the text"

Textarea (Mehrzeilig)

Für längere Antworten:

yaml
- annotation_type: text
  name: explanation
  description: "Explain your reasoning"
  textarea: true

Platzhaltertext

Annotatoren mit Beispieleingaben führen:

yaml
- annotation_type: text
  name: summary
  description: "Write a one-sentence summary"
  placeholder: "Enter your summary here..."

Zeichenbegrenzungen

Antwortlänge einschränken:

yaml
- annotation_type: text
  name: title
  description: "Suggest a title"
  min_length: 10
  max_length: 100

Pflichttext

Das Feld als Pflichtfeld markieren:

yaml
- annotation_type: text
  name: justification
  description: "Why did you choose this label?"
  required: true

Zahleneingabe

Einfaches Zahlenfeld

yaml
annotation_schemes:
  - annotation_type: number
    name: count
    description: "How many entities are mentioned?"

Bereichseinschränkungen

Mindest- und Höchstwerte festlegen:

yaml
- annotation_type: number
  name: rating
  description: "Rate from 1 to 10"
  min: 1
  max: 10

Schrittgröße

Inkrementpräzision steuern:

yaml
- annotation_type: number
  name: percentage
  description: "What percentage is relevant?"
  min: 0
  max: 100
  step: 5  # Increments of 5

Dezimalzahlen

Fließkommazahlen erlauben:

yaml
- annotation_type: number
  name: score
  description: "Confidence score"
  min: 0.0
  max: 1.0
  step: 0.1

Standardwert

Mit einem Standardwert vorbelegen:

yaml
- annotation_type: number
  name: count
  description: "Number of errors"
  default: 0
  min: 0

Schiebereglereingabe

Visuelle Alternative zur Zahleneingabe:

yaml
- annotation_type: slider
  name: confidence
  description: "How confident are you?"
  min: 0
  max: 100
  step: 1

Schieberegler mit Beschriftungen

Endpunktbeschriftungen hinzufügen:

yaml
- annotation_type: slider
  name: agreement
  description: "How much do you agree?"
  min: 0
  max: 100
  min_label: "Strongly Disagree"
  max_label: "Strongly Agree"

Schieberegler-Anzeigeoptionen

Den aktuellen Wert anzeigen:

yaml
- annotation_type: slider
  name: rating
  min: 0
  max: 100
  show_value: true

Häufige Anwendungsfälle

Textkorrekturaufgabe

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"

Übersetzungsqualität

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

Entitätenzählung

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

Feedback-Erhebung

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..."

Qualitätsbewertung mit Begründung

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

Validierung

Textvalidierung

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"

Zahlenvalidierung

Zahlen werden automatisch gegen min/max validiert:

yaml
- annotation_type: number
  name: year
  description: "Enter the year"
  min: 1900
  max: 2024
  validation_message: "Year must be between 1900 and 2024"

Tastaturnavigation

Text- und Zahlenfelder unterstützen Standard-Tastaturnavigation:

  • Tab zum Wechseln zwischen Feldern
  • Enter zum Absenden (bei einzeiligem Text)
  • Pfeiltasten zum Erhöhen/Verringern von Zahlen

Ausgabeformat

Text- und Zahlen-Annotationen werden direkt gespeichert:

json
{
  "id": "doc1",
  "correction": "The corrected text goes here.",
  "count": 5,
  "confidence": 85
}

Vollständiges Beispiel: Dokumentenüberprüfung

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..."

Bewährte Vorgehensweisen

  1. Geeignete Eingabetypen verwenden - Schieberegler für kontinuierliche Werte, Zahlen für genaue Zählungen
  2. Sinnvolle Einschränkungen setzen - Min-/Max-Werte verhindern ungültige Daten
  3. Platzhalter bereitstellen - Annotatoren zum erwarteten Format führen
  4. Optionale Felder klar kennzeichnen - required: false verwenden und in der Beschreibung angeben
  5. Bedingte Anzeige nutzen - Textfelder nur bei Bedarf anzeigen
  6. Validierung erwägen - Muster für strukturierte Eingaben wie E-Mails oder IDs verwenden