check DDC parameters in config.json

pull/1/head
erogol 2020-06-04 14:31:17 +02:00
parent 66ec1b2e2a
commit a82f7d129d
1 changed files with 2 additions and 0 deletions

View File

@ -318,6 +318,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)