From 4e925530662fa39e428d15f76e9237a2f289de13 Mon Sep 17 00:00:00 2001 From: PingFeng Luo Date: Fri, 31 Dec 2021 19:14:53 +0800 Subject: [PATCH] fix sytle --- egs/wenetspeech/ASR/local/text2token.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/egs/wenetspeech/ASR/local/text2token.py b/egs/wenetspeech/ASR/local/text2token.py index 8f8c433bf..cd0973727 100755 --- a/egs/wenetspeech/ASR/local/text2token.py +++ b/egs/wenetspeech/ASR/local/text2token.py @@ -89,7 +89,7 @@ def main(): while line: x = line.split() print(" ".join(x[: args.skip_ncols]), end=" ") - a = " ".join(x[args.skip_ncols :]) + a = " ".join(x[args.skip_ncols:]) # get all matched positions match_pos = [] @@ -119,7 +119,7 @@ def main(): i += 1 a = chars - a = [a[j : j + n] for j in range(0, len(a), n)] + a = [a[j: j + n] for j in range(0, len(a), n)] a_flat = [] for z in a: