mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-18 21:44:18 +00:00
fixed a formatting issue
This commit is contained in:
parent
f5257b1528
commit
d377d7bc65
@ -1900,6 +1900,7 @@ def symlink_or_copy(exp_dir: Path, src: str, dst: str):
|
|||||||
copyfile(src=exp_dir / src, dst=exp_dir / dst)
|
copyfile(src=exp_dir / src, dst=exp_dir / dst)
|
||||||
os.close(dir_fd)
|
os.close(dir_fd)
|
||||||
|
|
||||||
|
|
||||||
def num_tokens(
|
def num_tokens(
|
||||||
token_table: k2.SymbolTable, disambig_pattern: str = re.compile(r"^#\d+$")
|
token_table: k2.SymbolTable, disambig_pattern: str = re.compile(r"^#\d+$")
|
||||||
) -> int:
|
) -> int:
|
||||||
@ -1917,4 +1918,4 @@ def num_tokens(
|
|||||||
num_tokens = len(ans)
|
num_tokens = len(ans)
|
||||||
if 0 in ans:
|
if 0 in ans:
|
||||||
num_tokens -= 1
|
num_tokens -= 1
|
||||||
return num_tokens
|
return num_tokens
|
||||||
|
Loading…
x
Reference in New Issue
Block a user