mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-27 02:34:21 +00:00
Update preprocess_mdcc.py
This commit is contained in:
parent
336944c9b3
commit
7d22fef6f2
@ -92,6 +92,8 @@ def get_word_segments(lines: List[str]) -> List[str]:
|
||||
if len(line.strip().split(" ")) > 1:
|
||||
segments = []
|
||||
for segment in line.strip().split(" "):
|
||||
if segment.strip() == "":
|
||||
continue
|
||||
try:
|
||||
if not is_cjk(segment[0]): # en segment
|
||||
segments.append(segment)
|
||||
|
Loading…
x
Reference in New Issue
Block a user