From a265e88d3899b66f31e0626e2da3e83a337efb40 Mon Sep 17 00:00:00 2001 From: mart-r Date: Fri, 27 Jun 2025 15:20:50 +0100 Subject: [PATCH] Allow config.linking to have extra attributes set (for trainer) --- medcat-v2/medcat/config/config.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/medcat-v2/medcat/config/config.py b/medcat-v2/medcat/config/config.py index 5fcce13b3..9851463bd 100644 --- a/medcat-v2/medcat/config/config.py +++ b/medcat-v2/medcat/config/config.py @@ -166,6 +166,7 @@ class NLPConfig(SerialisableBaseModel): # NOTE: this will allow for more config entries # since we don't know what other implementations may require + class Config: extra = 'allow' validate_assignment = True @@ -358,6 +359,9 @@ class Linking(ComponentConfig): and learning rate for type contexts. """ + class Config: + extra = 'allow' + class Preprocessing(SerialisableBaseModel): """The preprocessing part of the config"""