Skip to content

Commit

Permalink
Merge 52b332c into 35b8ed5
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghostvv committed Mar 11, 2020
2 parents 35b8ed5 + 52b332c commit 11a03ed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/migration-guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ General
pipeline:
# - ... other components
- name: DIETClassifier
hidden_layers_sizes:
text: [256, 128]
intent_classification: True
entity_recognition: False
use_masked_language_model: False
Expand Down
7 changes: 6 additions & 1 deletion rasa/nlu/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,12 @@ def override_defaults(
cfg = {}

if custom:
cfg.update(custom)
for key in custom.keys():
if isinstance(cfg.get(key), dict):
cfg[key].update(custom[key])
else:
cfg[key] = custom[key]

return cfg


Expand Down

0 comments on commit 11a03ed

Please sign in to comment.