Skip to content

Commit d6074c3

Browse files
committed
Allow config.linking to have extra attributes set (for trainer) (#15)
1 parent 2333d99 commit d6074c3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

medcat-v2/medcat/config/config.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ class NLPConfig(SerialisableBaseModel):
166166

167167
# NOTE: this will allow for more config entries
168168
# since we don't know what other implementations may require
169+
169170
class Config:
170171
extra = 'allow'
171172
validate_assignment = True
@@ -358,6 +359,9 @@ class Linking(ComponentConfig):
358359
and learning rate for type contexts.
359360
"""
360361

362+
class Config:
363+
extra = 'allow'
364+
361365

362366
class Preprocessing(SerialisableBaseModel):
363367
"""The preprocessing part of the config"""

0 commit comments

Comments
 (0)