Questa pagina non è ancora disponibile nella tua lingua. Viene mostrata la versione in inglese.
Text & Number Input
एनोटेशन के लिए फ्री-फॉर्म टेक्स्ट और संख्यात्मक इनपुट।
Text & Number Input
Text और number input एनोटेटर्स को फ्री-फॉर्म प्रतिक्रियाएँ देने की अनुमति देते हैं, जो सुधार, स्पष्टीकरण, गणना, और मापन के लिए उपयोगी हैं।
Text Input
बुनियादी Text फ़ील्ड
एकल-पंक्ति text input:
yaml
annotation_schemes:
- annotation_type: text
name: correction
description: "Provide a corrected version of the text"Textarea (बहु-पंक्ति)
लंबी प्रतिक्रियाओं के लिए:
yaml
- annotation_type: text
name: explanation
description: "Explain your reasoning"
textarea: truePlaceholder टेक्स्ट
उदाहरण इनपुट के साथ एनोटेटर्स को मार्गदर्शन करें:
yaml
- annotation_type: text
name: summary
description: "Write a one-sentence summary"
placeholder: "Enter your summary here..."Character सीमाएँ
प्रतिक्रिया लंबाई सीमित करें:
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: trueNumber Input
बुनियादी Number फ़ील्ड
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: 10Step आकार
वृद्धि सटीकता नियंत्रित करें:
yaml
- annotation_type: number
name: percentage
description: "What percentage is relevant?"
min: 0
max: 100
step: 5 # Increments of 5दशमलव संख्याएँ
Floating-point मान की अनुमति दें:
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: 0Slider Input
Number input का दृश्य विकल्प:
yaml
- annotation_type: slider
name: confidence
description: "How confident are you?"
min: 0
max: 100
step: 1लेबल के साथ Slider
समापन बिंदु लेबल जोड़ें:
yaml
- annotation_type: slider
name: agreement
description: "How much do you agree?"
min: 0
max: 100
min_label: "Strongly Disagree"
max_label: "Strongly Agree"Slider प्रदर्शन विकल्प
वर्तमान मान दिखाएँ:
yaml
- annotation_type: slider
name: rating
min: 0
max: 100
show_value: trueसामान्य उपयोग के मामले
Text सुधार कार्य
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: falseEntity गणना
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सत्यापन
Text सत्यापन
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"Number सत्यापन
Numbers 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"कीबोर्ड नेविगेशन
Text और number फ़ील्ड मानक कीबोर्ड नेविगेशन का समर्थन करते हैं:
- फ़ील्ड के बीच जाने के लिए
Tab - सबमिट करने के लिए
Enter(एकल-पंक्ति text के लिए) - Number वृद्धि/कमी के लिए Arrow keys
आउटपुट फॉर्मेट
Text और number एनोटेशन सीधे सहेजे जाते हैं:
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..."सर्वोत्तम प्रथाएँ
- उचित इनपुट प्रकारों का उपयोग करें - निरंतर मान के लिए slider, सटीक गणना के लिए number
- उचित बाधाएँ निर्धारित करें - min/max मान अमान्य डेटा को रोकते हैं
- Placeholder प्रदान करें - एनोटेटर्स को अपेक्षित फॉर्मेट पर मार्गदर्शन करें
- वैकल्पिक फ़ील्ड स्पष्ट करें -
required: falseका उपयोग करें और विवरण में बताएँ - सशर्त प्रदर्शन का उपयोग करें - जब आवश्यक हो तभी text फ़ील्ड दिखाएँ
- सत्यापन पर विचार करें - ईमेल या ID जैसे संरचित इनपुट के लिए pattern का उपयोग करें