NeMo icon indicating copy to clipboard operation
NeMo copied to clipboard

Abnormal Punctuation and Excessive Sentence Segmentation in German (canary-180m-flash)

Open Ranger2000 opened this issue 3 months ago • 3 comments

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:

  1. 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.
  2. 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:


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.

Ranger2000 avatar Aug 27 '26 21:08 Ranger2000

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.

modelpath-dev avatar Sep 04 '26 08:09 modelpath-dev

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.

modelpath-dev avatar Sep 06 '26 09:09 modelpath-dev

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.

modelpath-dev avatar Sep 08 '26 10:09 modelpath-dev