mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-09 05:55:26 +00:00
Merge 7cdc0da3391e5c3cdd8b7ee9a9db52a7a1d6e641 into 693f069de73fd91d7c2009571245d97221cc3a3f
This commit is contained in:
commit
62abcc8f6f
@ -55,6 +55,12 @@ def get_args():
|
||||
help="Vocabulary size for BPE training",
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"--unk-surface",
|
||||
type=str,
|
||||
help="Unknown symbol surface",
|
||||
)
|
||||
|
||||
return parser.parse_args()
|
||||
|
||||
|
||||
@ -101,6 +107,7 @@ def main():
|
||||
unk_id=unk_id,
|
||||
bos_id=-1,
|
||||
eos_id=-1,
|
||||
**(dict(unk_surface=args.unk_surface) if args.unk_surface else dict()),
|
||||
)
|
||||
else:
|
||||
print(f"{model_file} exists - skipping")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user