diff --git a/egs/commonvoice/ASR/local/word_segment_yue.py b/egs/commonvoice/ASR/local/word_segment_yue.py index 51894da3a4..e8448a0c2f 100755 --- a/egs/commonvoice/ASR/local/word_segment_yue.py +++ b/egs/commonvoice/ASR/local/word_segment_yue.py @@ -91,7 +91,7 @@ def get_word_segments(lines: List[str]) -> List[str]: # segments.extend(pycantonese.segment(segment)) except Exception as e: logging.error(f"Failed to process segment: {segment}") - raise e + raise if curr_str: # process the last segment segments.extend(pycantonese.segment(curr_str)) new_lines.append(" ".join(segments) + "\n")