Skip to content
Esta página aún no está disponible en su idioma. Se muestra la versión en inglés.

Radio & Multiselect

एकल और एकाधिक चयन एनोटेशन प्रकार।

Radio & Multiselect

Radio button और multiselect checkbox वर्गीकरण कार्यों के लिए सबसे सामान्य एनोटेशन प्रकार हैं।

Radio Buttons

जब एनोटेटर्स को बिल्कुल एक विकल्प चुनना हो तो radio button का उपयोग करें।

बुनियादी कॉन्फ़िगरेशन

yaml
annotation_schemes:
  - annotation_type: radio
    name: sentiment
    description: "Select the sentiment of this text"
    labels:
      - Positive
      - Negative
      - Neutral

कीबोर्ड शॉर्टकट के साथ

तेज़ एनोटेशन के लिए कीबोर्ड शॉर्टकट जोड़ें:

yaml
annotation_schemes:
  - annotation_type: radio
    name: sentiment
    description: "Select the sentiment"
    labels:
      - Positive
      - Negative
      - Neutral
    keyboard_shortcuts:
      Positive: "1"
      Negative: "2"
      Neutral: "3"

Tooltip के साथ

प्रत्येक विकल्प के लिए अतिरिक्त संदर्भ प्रदान करें:

yaml
annotation_schemes:
  - annotation_type: radio
    name: sentiment
    description: "Select the sentiment"
    labels:
      - Positive
      - Negative
      - Neutral
    tooltips:
      Positive: "The text expresses happiness, satisfaction, or approval"
      Negative: "The text expresses sadness, anger, or disapproval"
      Neutral: "The text does not express strong emotion"

Multiselect

जब एनोटेटर्स कई विकल्प चुन सकते हों तो multiselect का उपयोग करें।

बुनियादी कॉन्फ़िगरेशन

yaml
annotation_schemes:
  - annotation_type: multiselect
    name: topics
    description: "Select all topics that apply"
    labels:
      - Politics
      - Sports
      - Technology
      - Entertainment
      - Science

न्यूनतम/अधिकतम चयन के साथ

चयनों की संख्या सीमित करें:

yaml
annotation_schemes:
  - annotation_type: multiselect
    name: topics
    description: "Select 1-3 topics"
    labels:
      - Politics
      - Sports
      - Technology
    min_selections: 1
    max_selections: 3

Styling विकल्प

क्षैतिज लेआउट

विकल्पों को लंबवत के बजाय क्षैतिज रूप से प्रदर्शित करें:

yaml
annotation_schemes:
  - annotation_type: radio
    name: rating
    labels:
      - "1"
      - "2"
      - "3"
      - "4"
      - "5"
    display: horizontal

कस्टम रंग

लेबल को रंग असाइन करें:

yaml
annotation_schemes:
  - annotation_type: radio
    name: sentiment
    labels:
      - Positive
      - Negative
      - Neutral
    label_colors:
      Positive: "#22c55e"
      Negative: "#ef4444"
      Neutral: "#6b7280"

सर्वोत्तम प्रथाएँ

  1. लेबल संक्षिप्त रखें - छोटे, स्पष्ट लेबल नाम उपयोग करें
  2. कीबोर्ड शॉर्टकट का उपयोग करें - एनोटेशन को काफी तेज़ करता है
  3. अस्पष्ट लेबल के लिए tooltip जोड़ें - सुसंगतता सुनिश्चित करने में मदद करता है
  4. विकल्प सीमित करें - बहुत अधिक विकल्प एनोटेटर्स को धीमा करते हैं
  5. तार्किक रूप से क्रमबद्ध करें - सबसे सामान्य विकल्प पहले, या वर्णानुक्रम में