Skip to content
Tutorials5 min read

संगीत की शैली के वर्गीकरण का एनोटेशन

Potato में संगीत एनोटेशन का कार्य बनाइए, waveform के चित्रण, 30 सेकंड के preview, शैलियों के श्रेणीबद्ध लेबल-वृक्ष और जोड़े में पसंद की तुलना के साथ।

Potato Team

सिफ़ारिश करने वाले सिस्टम, अपने आप बनने वाली प्लेलिस्ट और संगीत खोजने की सुविधाएँ, सब शैली के लेबल पर चलती हैं। यह पोस्ट बताती है कि Potato में शैली के टैग लगाने वाले इंटरफ़ेस कैसे बनाए जाएँ, ऑडियो preview और शैलियों के भीतर शैलियों वाले ढाँचे के साथ।

शैली का बुनियादी वर्गीकरण

yaml
annotation_task_name: "Music Genre Classification"
 
data_files:
  - data/tracks.json
 
item_properties:
  audio_path: audio_preview
  metadata_fields: [artist, title, album]
 
# Show track metadata
display:
  show_metadata: true
  metadata_template: "{{artist}} - {{title}}"
 
annotation_schemes:
  - annotation_type: audio_annotation
    playback_rate_control: true
    name: primary_genre
    description: "Select the primary genre"
    labels:
      - Rock
      - Pop
      - Hip-Hop
      - Electronic
      - Jazz
      - Classical
      - R&B
      - Country
      - Metal
      - Folk

शैलियों का श्रेणीबद्ध ढाँचा

yaml
annotation_schemes:
  # Top-level genre
  - annotation_type: radio
    name: genre
    description: "Primary genre"
    labels:
      - Rock
      - Electronic
      - Hip-Hop
      - Pop
      - Jazz
      - Classical
 
  # Subgenre (conditional)
  - annotation_type: radio
    name: subgenre
    description: "Subgenre"

एक से ज़्यादा शैलियों के टैग

बहुत सारे ट्रैक एक से ज़्यादा शैली में बैठते हैं, इसलिए एनोटेटर को कई चुनने दीजिए:

yaml
annotation_schemes:
  - annotation_type: multiselect
    name: genres
    description: "Select ALL applicable genres (up to 3)"
    labels:
      - Rock
      - Pop
      - Electronic
      - Hip-Hop
      - R&B
      - Jazz
      - Classical
      - Country
      - Folk
      - Metal
      - Punk
      - Indie
      - World
      - Latin
 
  - annotation_type: radio
    name: primary_genre
    description: "Which is the PRIMARY genre?"

पूरा संगीत एनोटेशन कॉन्फ़िग

yaml
annotation_task_name: "Music Tagging and Classification"
 
data_files:
  - data/music_library.json
 
item_properties:
  audio_path: preview_url
  metadata_fields:
    - artist
    - title
    - album
    - year
    - duration
 
display:
  show_metadata: true
  metadata_layout: card
  fields:
    - label: "Artist"
      field: artist
    - label: "Track"
      field: title
    - label: "Album"
      field: album
    - label: "Year"
      field: year
 
annotation_schemes:
  # Audio playback configuration
  - annotation_type: audio_annotation
    playback_rate_control: true
 
  # Genre classification
  - annotation_type: multiselect
    name: genres
    description: "Select all applicable genres"
    labels:
      - Rock
      - Pop
      - Electronic/Dance
      - Hip-Hop/Rap
      - R&B/Soul
      - Jazz
      - Classical
      - Country
      - Folk/Acoustic
      - Metal
      - Punk
      - Indie
      - World/International
      - Latin
      - Blues
      - Reggae
 
  # Mood/Energy
  - annotation_type: multiselect
    name: mood
    description: "Select the mood(s) of this track"
    labels:
      - Happy/Uplifting
      - Sad/Melancholic
      - Energetic
      - Calm/Relaxing
      - Aggressive
      - Romantic
      - Dark/Moody
      - Nostalgic
      - Motivational
 
  # Energy level
  - annotation_type: likert
    name: energy
    description: "Energy level"
    size: 5
    min_label: "Very low energy"
    max_label: "Very high energy"
 
  # Danceability
  - annotation_type: likert
    name: danceability
    description: "How danceable is this track?"
    size: 5
    min_label: "Not danceable"
    max_label: "Very danceable"
 
  # Vocal content
  - annotation_type: radio
    name: vocals
    description: "Vocal content"
    labels:
      - Instrumental only
      - Mostly instrumental
      - Balanced
      - Mostly vocals
      - Vocals dominant
 
  # Era/Style
  - annotation_type: radio
    name: era
    description: "Musical era/style"
    labels:
      - Pre-1970s (Classic)
      - 1970s
      - 1980s
      - 1990s
      - 2000s
      - 2010s
      - 2020s/Current
 
  # Quality flags
  - annotation_type: multiselect
    name: flags
    description: "Special flags (if applicable)"
    labels:
      - Explicit content
      - Live recording
      - Remix/Cover
      - Holiday/Seasonal
      - Soundtrack
      - Spoken word sections
    label_requirement:
      required: false
 
  # Confidence
  - annotation_type: likert
    name: confidence
    description: "Confidence in your genre classification"
    size: 5
    min_label: "Uncertain"
    max_label: "Very confident"
 
annotation_guidelines:
  title: "Music Tagging Guidelines"
  content: |
    ## Genre Selection
    - Choose 1-3 genres that best describe the track
    - Select the most specific applicable genre
    - When unsure, lean toward broader categories
 
    ## Mood Assessment
    - Consider the overall emotional tone
    - A track can have multiple moods
    - Think about how the music makes you feel
 
    ## Energy & Danceability
    - Energy: tempo, intensity, power
    - Danceability: rhythm, beat clarity, groove
 
    ## Listening Tips
    - Listen to at least 30 seconds
    - Pay attention to drops, changes, and transitions
    - Consider instrumentation and production style
 

आउटपुट प्रारूप

json
{
  "id": "track_001",
  "audio_url": "/audio/preview_001.mp3",
  "metadata": {
    "artist": "The Beatles",
    "title": "Here Comes the Sun",
    "album": "Abbey Road",
    "year": 1969
  },
  "annotations": {
    "genres": ["Rock", "Pop"],
    "mood": ["Happy/Uplifting", "Nostalgic"],
    "energy": 3,
    "danceability": 2,
    "vocals": "Balanced",
    "era": "Pre-1970s (Classic)",
    "flags": [],
    "confidence": 5
  }
}

संगीत एनोटेशन के सुझाव

  1. अच्छे हेडफ़ोन मायने रखते हैं। लैपटॉप के स्पीकर पर शैली के संकेत छूट जाएँगे।
  2. आवाज़ का स्तर एक जैसा रखिए, वरना बार-बार घटाते-बढ़ाते रहने से थकान होती है।
  3. हर preview इतना सुनिए कि बदलाव पकड़ में आ जाएँ, सिर्फ़ शुरुआत सुनकर मत छोड़िए।
  4. शुरू करने से पहले दोहरा लीजिए कि हर शैली का मतलब असल में क्या है।
  5. बीच-बीच में रुकिए। थके हुए कान ख़राब फ़ैसले देते हैं।

अगले क़दम

ऑडियो एनोटेशन के सारे विकल्पों (waveform का प्रदर्शन, playback के नियंत्रण, region चुनना) के लिए स्रोत दस्तावेज़ देखें।


ऑडियो के पूरे दस्तावेज़ ऑडियो एनोटेशन पर हैं।