CogStack / MedCAT

Medical Concept Annotation Tool
Other
448 stars 103 forks source link

CU-8694cd9t2: Allow merging config into model pack config before init #462

Closed mart-r closed 2 months ago

mart-r commented 3 months ago

Sometimes one might want to load an existing model off disk and make changes to the config before it's initialised. However, this can be problematic for parts of the config that only take effect at initialisation time (see e.g #447).

As such, this PR will add an additional parameter to CAT.load_model_pack such that the config of a model pack can be amended before the initialisation (i.e before the pipe gets built).

tomolopolis commented 3 months ago

Task linked: CU-8694cd9t2 Add optional dict to merge with config upon CAT load