mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
minor bug fixes for existing scripts
This commit is contained in:
parent
91044348bb
commit
14f0cb5977
@ -274,7 +274,7 @@ def main():
|
||||
params.update(vars(args))
|
||||
|
||||
token_table = k2.SymbolTable.from_file(params.tokens)
|
||||
params.vocab_size = num_tokens(token_table)
|
||||
params.vocab_size = num_tokens(token_table) + 1 # +1 for blank
|
||||
params.blank_id = token_table["<blk>"]
|
||||
assert params.blank_id == 0
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user