mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
from local
This commit is contained in:
parent
f5678f57ef
commit
cbc1ad4f10
Binary file not shown.
@ -548,6 +548,12 @@ def main():
|
||||
num_decoder_layers=params.num_decoder_layers,
|
||||
)
|
||||
|
||||
f = open(f"{params.lang_dir}/tokens.txt", "r").readlines()
|
||||
token_dict = {}
|
||||
for line in f:
|
||||
line = line.strip().split()
|
||||
token_dict[line[1]] = line[0]
|
||||
|
||||
if params.avg == 1:
|
||||
load_checkpoint(f"{params.exp_dir}/epoch-{params.epoch}.pt", model)
|
||||
else:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user