Implement a synthetic-data pipeline: generate candidate examples, validate them with a rul

SFT, Instruction Tuning & PEFT4 / 6

Chapter 114 / 6

SFT, Instruction Tuning & PEFT

Implement a synthetic-data pipeline: generate candidate examples, validate them with a rul

Hard

Implement a synthetic-data pipeline: generate candidate examples, validate them with a rule-based checker, deduplicate, and report the resulting source mixture.

Target interface
normalize(text)

Implement the function/class skeleton in the editor. Any correct approach is accepted.

Hints0 / 2
Reference solution
Your own code stays in the editor.