このページはまだお使いの言語に翻訳されていません。英語版を表示しています。
Select (Dropdown)
लंबी विकल्प सूचियों के लिए dropdown menu से एकल चयन।
Select (Dropdown) Annotation
Select प्रकार एकल चयन के लिए dropdown menu प्रदान करता है। लंबी विकल्प सूचियों (5+) के लिए सबसे उपयुक्त जहाँ radio button दृश्य रूप से भारी होंगे।
बुनियादी कॉन्फ़िगरेशन
yaml
annotation_schemes:
- name: "category"
description: "Select the document category"
annotation_type: "select"
labels:
- name: "news"
- name: "opinion"
- name: "tutorial"
- name: "review"
- name: "other"कॉन्फ़िगरेशन विकल्प
| फ़ील्ड | प्रकार | आवश्यक | विवरण |
|---|---|---|---|
name | string | हाँ | एनोटेशन के लिए अद्वितीय पहचानकर्ता |
description | string | हाँ | एनोटेटर्स को दिखाए जाने वाले निर्देश |
annotation_type | string | हाँ | "select" होना चाहिए |
labels | array | हाँ | चुनने के लिए विकल्पों की सूची |
default | string | नहीं | डिफ़ॉल्ट चयनित विकल्प |
required | boolean | नहीं | क्या चयन आवश्यक है |
उदाहरण
दस्तावेज़ वर्गीकरण
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"Tooltip के साथ
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"आउटपुट फॉर्मेट
Select एनोटेशन चयनित विकल्प नाम आउटपुट करता है:
json
{
"id": "item_1",
"annotations": {
"category": "tutorial"
}
}Select बनाम Radio का उपयोग कब करें
| Select का उपयोग करें | Radio का उपयोग करें |
|---|---|
| 5+ विकल्प | 2-5 विकल्प |
| विकल्प एनोटेटर्स को अच्छी तरह पता हैं | एक साथ सभी विकल्प देखने की आवश्यकता है |
| स्थान सीमित है | कीबोर्ड शॉर्टकट महत्वपूर्ण हैं |
| लंबे विकल्प लेबल | त्वरित दृश्य स्कैनिंग की आवश्यकता है |
सर्वोत्तम प्रथाएँ
- विकल्पों को तार्किक रूप से क्रमबद्ध करें - वर्णानुक्रम, आवृत्ति, या semantic समूहन के अनुसार
- "Other" विकल्प शामिल करें - जब सूची संपूर्ण नहीं हो सकती
- स्पष्ट, विशिष्ट लेबल का उपयोग करें - अस्पष्ट या ओवरलैपिंग श्रेणियों से बचें
- उचित डिफ़ॉल्ट निर्धारित करें - यदि एक विकल्प सबसे सामान्य है, तो उसे डिफ़ॉल्ट बनाने पर विचार करें