In this article
Map phoneme outputs to preserved utterance identities instead of blindly zipping original rows.
The generated-data scenario
A pronunciation-data generator sends a list of synthetic utterances to Phonemizer and zips returned strings with the original record identifiers. A blank or whitespace-only utterance disappears from the returned list. Every later output can then acquire the wrong source identity. The research question is whether each phoneme target remains associated with its actual input rather than whether every returned string is nonempty.
The generation mechanism
Phonemizer documents preserve_empty_lines as disabled by default. The inspected implementation removes whitespace-only input lines before backend processing and can reinsert remembered empty positions when preservation is enabled. Its prepend_text option can also return paired input and phonemized utterances. These behaviors concern output membership; a successful backend call does not guarantee positional correspondence with an unfiltered original table.
Define the dataset contract
Define blank input, missing input, failed conversion and valid empty output as distinct statuses. Retain immutable utterance identifiers independently of displayed text, since repeated text can legitimately occur in separate records. Specify whether blank utterances are excluded or retained as explicit placeholders. The release must account for each original row even if it produces no phoneme target suitable for training.
A step-by-step protocol
Prepare a batch with distinctive utterances around a blank and a whitespace-only row, plus repeated text under separate identities. Run the actual configured conversion path and inspect result membership before joining identifiers. Use preserved positions or an explicit filtered-input ledger to construct the association. Export and reload the final records, checking phoneme provenance on both sides of every excluded row.
Evidence required for acceptance
Acceptance requires an input-to-output ledger with reasons for exclusions and a correct utterance-to-phoneme relation after loading. Preserve backend, language and relevant options. Check cardinality as a diagnostic, but do not assume equal counts alone prove correct order. A padded repair can restore length while still attaching a target to the wrong original utterance if the removed position was guessed incorrectly.
Failure cases and limits
This review does not evaluate pronunciation correctness or promise identical phoneme conventions across backends. Those need separate linguistic and tokenizer checks. The proposed fixture uses generated text and requires no private speech recordings. Its result is a reliable row-association contract, distinguishing intentional omission from accidental target reassignment before a pronunciation model is trained or evaluated on the exported corpus.
Primary references and related reading
Map phoneme outputs to preserved utterance identities instead of blindly zipping original rows. Phonemizer empty-line handling and utterance outputs; Phonemizer empty-row removal and reinsertion.
The proposed investigation of phonemizer empty lines synthetic utterance identity is a proposed dataset-contract review; no production dataset was generated or evaluated. Related reading: FastSpeech2Conformer pronunciation debugging: inspect phonemes before prosody; JSON Lines for AI data: a record boundary is not a feature schema.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.