Fix for style check

This commit is contained in:
yifanyang 2023-02-02 17:51:08 +08:00
parent c3e01e141f
commit 76eee0ee80
3 changed files with 3 additions and 2 deletions

View File

@ -609,7 +609,7 @@ def greedy_search(
else: else:
sym_per_frame = 0 sym_per_frame = 0
t += 1 t += 1
hyp = hyp[context_size :] # remove blanks hyp = hyp[context_size:] # remove blanks
if not return_timestamps: if not return_timestamps:
return hyp return hyp

View File

@ -52,6 +52,7 @@ from icefall.utils import (
) )
from lhotse.cut import Cut from lhotse.cut import Cut
def get_parser(): def get_parser():
parser = argparse.ArgumentParser( parser = argparse.ArgumentParser(
formatter_class=argparse.ArgumentDefaultsHelpFormatter formatter_class=argparse.ArgumentDefaultsHelpFormatter