Skip to content

Commit bf92237

Browse files
committed
fix updating dict config values
1 parent 921600e commit bf92237

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

docs/migration-guide.rst

-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ General
9292
- name: DIETClassifier
9393
hidden_layers_sizes:
9494
text: [256, 128]
95-
label: []
9695
intent_classification: True
9796
entity_recognition: False
9897
use_masked_language_model: False

rasa/nlu/config.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,12 @@ def override_defaults(
5959
cfg = {}
6060

6161
if custom:
62-
cfg.update(custom)
62+
for key in custom.keys():
63+
if isinstance(cfg.get(key), dict):
64+
cfg[key].update(custom[key])
65+
else:
66+
cfg[key] = custom[key]
67+
6368
return cfg
6469

6570

0 commit comments

Comments
 (0)