fixed a formatting issue

This commit is contained in:
jinzr 2023-07-06 12:45:43 +08:00
parent ccb6031853
commit a572f441eb

View File

@ -2061,6 +2061,7 @@ def symlink_or_copy(exp_dir: Path, src: str, dst: str):
copyfile(src=exp_dir / src, dst=exp_dir / dst)
os.close(dir_fd)
def num_tokens(
token_table: k2.SymbolTable, disambig_pattern: str = re.compile(r"^#\d+$")
) -> int:
@ -2078,4 +2079,4 @@ def num_tokens(
num_tokens = len(ans)
if 0 in ans:
num_tokens -= 1
return num_tokens
return num_tokens