mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-27 18:54:18 +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:
|
if len(line.strip().split(" ")) > 1:
|
||||||
segments = []
|
segments = []
|
||||||
for segment in line.strip().split(" "):
|
for segment in line.strip().split(" "):
|
||||||
|
if segment.strip() == "":
|
||||||
|
continue
|
||||||
try:
|
try:
|
||||||
if not is_cjk(segment[0]): # en segment
|
if not is_cjk(segment[0]): # en segment
|
||||||
segments.append(segment)
|
segments.append(segment)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user