mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-09 01:52:41 +00:00
Add an assertion
This commit is contained in:
parent
3d109b121d
commit
f28951f2b6
@ -588,6 +588,10 @@ def run(rank, world_size, args):
|
|||||||
eos_token="<sos/eos>",
|
eos_token="<sos/eos>",
|
||||||
)
|
)
|
||||||
elif "lang_phone" in params.lang_dir:
|
elif "lang_phone" in params.lang_dir:
|
||||||
|
assert params.att_rate == 0, (
|
||||||
|
"Attention decoder training does not support phone lang dirs at this time due to a missing "
|
||||||
|
"<sos/eos> symbol. Set --att-rate=0 for pure CTC training when using a phone-based lang dir."
|
||||||
|
)
|
||||||
graph_compiler = CtcTrainingGraphCompiler(
|
graph_compiler = CtcTrainingGraphCompiler(
|
||||||
lexicon,
|
lexicon,
|
||||||
device=device,
|
device=device,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user