medcat.components.addons.relation_extraction.config
Classes:
-
RelExtrBaseConfig–Base class for the RelCAT models
Attributes:
-
logger–
RelExtrBaseConfig
RelExtrBaseConfig(pretrained_model_name_or_path, **kwargs)
Bases: PretrainedConfig
Base class for the RelCAT models
Methods:
Attributes:
-
hf_model_config(PretrainedConfig) – -
model_type– -
name– -
pretrained_model_name_or_path–
Source code in medcat-v2/medcat/components/addons/relation_extraction/config.py
16 17 18 19 20 21 | |
hf_model_config
instance-attribute
hf_model_config: PretrainedConfig = get('model_config', PretrainedConfig())
model_type
instance-attribute
model_type = 'relcat'
name
class-attribute
instance-attribute
name = 'base-config-relcat'
pretrained_model_name_or_path
instance-attribute
pretrained_model_name_or_path = pretrained_model_name_or_path
load
classmethod
load(pretrained_model_name_or_path: str, relcat_config: ConfigRelCAT, **kwargs) -> RelExtrBaseConfig
Source code in medcat-v2/medcat/components/addons/relation_extraction/config.py
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | |
save
save(save_path: str)
Source code in medcat-v2/medcat/components/addons/relation_extraction/config.py
31 32 33 | |
to_dict
to_dict()
Source code in medcat-v2/medcat/components/addons/relation_extraction/config.py
23 24 25 26 27 28 29 | |