check DDC parameters in config.json

This commit is contained in:
erogol 2020-06-04 14:31:17 +02:00
parent 01339e94a5
commit 9f5f3910e4
1 changed files with 2 additions and 0 deletions

View File

@ -319,6 +319,8 @@ def check_config(c):
_check_argument('transition_agent', c, restricted=True, val_type=bool)
_check_argument('location_attn', c, restricted=True, val_type=bool)
_check_argument('bidirectional_decoder', c, restricted=True, val_type=bool)
_check_argument('double_decoder_consistency', c, restricted=True, val_type=bool)
_check_argument('ddc_r', c, restricted='double_decoder_consistency' in c.keys(), min_val=1, max_val=7, val_type=int)
# stopnet
_check_argument('stopnet', c, restricted=True, val_type=bool)