Abnormal Punctuation and Excessive Sentence Segmentation in German (canary-180m-flash)
Bug Report: Abnormal Punctuation and Excessive Sentence Segmentation in German (canary-180m-flash)
Description
When transcribing German audio with the target language set to German (de), the Canary 180M Flash model produces incorrect punctuation formatting and unnatural sentence segmentation.
Specifically:
- Incorrect Leading Whitespace: A space is automatically inserted before punctuation marks (e.g., periods and commas). This creates an uneven text layout and disrupts standard punctuation placement.
- Missing Commas & Excessive Sentence Segmentation: The model rarely inserts commas to structure clauses. Instead, it frequently breaks sentences up with misplaced periods, causing over-segmentation and capitalizing words after unnecessary sentence breaks.
Audio Sample for Reproduction
An audio file demonstrating this behavior is available for testing:
- Audio File: Download Audio Sample (Google Drive)
Comparison of Transcription Outputs
Expected / Baseline Output (Parakeet TDT 0.6B)
"Dieser Test zeigt, dass die Punktuation von Canary 180 Meter Flash immer ein Leerzeichen einfügt und danach die Darstellung und Satzzeichenstellung verschoben ist. Dieser Fehler muss in der Spracherkennung korrigiert werden, zudem versucht dieses Sprachmodell keine Trennzeichen wie Kommatas, sondern setzt viel zu oft Punkte, wo keine hingehören."
Actual Output (Canary 180M Flash)
"Dieser Test zeigt , dass die Punktuation von Canary hundertachtzig Meter Flash . Immer ein Leerzeichen einfügt . Und danach die Darstellung der Satzzeichenstellung verschoben ist . Dieser Fehler muss in der Spracherkennung korrigiert werden . Zudem versucht dieses Sprachmodell keine Trennzeichen wie Kommatas . Sondern setzt viel zu oft Punkte , wo keine hingehören ."
Key Observations
- Leading Spaces before Punctuation: Notice
zeigt ,,Flash .,einfügt .,ist .,werden .,Kommatas .,hingehören .. - Over-Segmentation: Main clauses and subordinate clauses linked by conjunctions (such as dass or und) are split into separate sentences with full stops and capitalized initial letters (. Immer, . Und, . Sondern).
Impact
Refining the punctuation and tokenization/decoding logic for German within the model or post-processing pipeline would significantly improve readability and downstream text utility.
Thank you for your dedicated work in developing and refining the NeMo models.
I'll work on this. Could you assign it to me?
I'll look at the current code, add a focused test, and send a small PR.
I am reviewing the code now. I'll focus on the punctuation and sentence segmentation issues. Once I have a solution, I'll submit a PR for review. Let me know if there are any specific areas you want me to prioritize.
I have started working on the punctuation and sentence segmentation issues. I will update you once I have made some progress. If there are any specific areas you would like me to focus on, please let me know.