Skip to content

Commit

Permalink
Update egs/commonvoice/ASR/local/word_segment_yue.py
Browse files Browse the repository at this point in the history
Co-authored-by: Fangjun Kuang <[email protected]>
  • Loading branch information
JinZr and csukuangfj authored Apr 8, 2024
1 parent 8347436 commit b9d34fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion egs/commonvoice/ASR/local/word_segment_yue.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit b9d34fb

Please sign in to comment.