Curator icon indicating copy to clipboard operation
Curator copied to clipboard

Update save-export.md

Open arhamm1 opened this issue 1 year ago • 1 comments

More descriptive title focused on user action New Overview section explaining export use cases Properly formatted JSONL examples as code blocks Enhanced metadata fields table with clarification on optional fields Detailed export configuration with parameter documentation Clearer directory structure explanation Reorganized quality control section (moved before export for logical flow) Complete working pipeline example with all stages New Best Practices section New Verifying Export Results section with bash and Python validation examples Updated Related Topics with accurate links and descriptions

Description

Usage

# Add snippet demonstrating usage

Checklist

  • [ ] I am familiar with the Contributing Guide.
  • [ ] New or Existing tests cover these changes.
  • [ ] The documentation is up to date with these changes.

arhamm1 avatar Nov 20 '25 00:11 arhamm1

Greptile Overview

Greptile Summary

This PR significantly improves the save-export.md documentation with enhanced structure, comprehensive examples, and clearer explanations. The changes include:

  • Added Overview section explaining export use cases for ASR training, quality analysis, and dataset distribution
  • Enhanced JSONL format documentation with format characteristics and better code examples
  • Expanded metadata fields table with clarifications on optional fields
  • Added detailed export configuration section with parameter documentation
  • Included complete working pipeline example demonstrating the full audio curation workflow
  • Added Best Practices section with practical guidance
  • Reorganized quality control section for better logical flow

Issues found:

  • One broken link: audio-curation-quickstart.md should be audio.md (line 277)

Confidence Score: 4/5

  • safe to merge after fixing the broken link on line 277
  • documentation improvements are well-structured and technically accurate. one broken link needs correction before merge. all code examples use valid imports and follow proper NeMo Curator patterns
  • docs/curate-audio/save-export.md line 277 has a broken link that must be corrected

Important Files Changed

File Analysis

Filename Score Overview
docs/curate-audio/save-export.md 4/5 comprehensive documentation improvements with enhanced examples, better structure, and one broken link that needs fixing

Sequence Diagram

sequenceDiagram
    participant User
    participant Pipeline
    participant CreateManifest as CreateInitialManifestFleursStage
    participant ASR as InferenceAsrNemoStage
    participant WER as GetPairwiseWerStage
    participant Duration as GetAudioDurationStage
    participant Filter as PreserveByValueStage
    participant Convert as AudioToDocumentStage
    participant Writer as JsonlWriter
    participant Output as JSONL Files

    User->>Pipeline: pipeline.run(executor)
    Pipeline->>CreateManifest: Load audio data
    CreateManifest-->>Pipeline: AudioBatch (raw audio + text)
    
    Pipeline->>ASR: Run ASR inference
    ASR-->>Pipeline: AudioBatch (with pred_text)
    
    Pipeline->>WER: Calculate WER metrics
    WER-->>Pipeline: AudioBatch (with wer scores)
    
    Pipeline->>Duration: Calculate audio duration
    Duration-->>Pipeline: AudioBatch (with duration)
    
    Pipeline->>Filter: Apply quality filters (WER, duration)
    Filter-->>Pipeline: Filtered AudioBatch
    
    Pipeline->>Convert: Convert AudioBatch to DocumentBatch
    Convert-->>Pipeline: DocumentBatch
    
    Pipeline->>Writer: Export to JSONL
    Writer->>Output: Write .jsonl files
    Output-->>User: Curated audio dataset

greptile-apps avatar Nov 20 '25 00:11 greptile-apps