medcat.components.addons.relation_extraction.bert.config
Classes:
-
RelExtrBertConfig–Class for BertConfig
Attributes:
-
logger–
RelExtrBertConfig
RelExtrBertConfig(pretrained_model_name_or_path, **kwargs)
Bases: RelExtrBaseConfig
Class for BertConfig
Methods:
-
load–
Attributes:
-
hf_model_config(BertConfig) – -
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: BertConfig
name
class-attribute
instance-attribute
name = 'bert-config'
pretrained_model_name_or_path
class-attribute
instance-attribute
pretrained_model_name_or_path = 'bert-base-uncased'
load
classmethod
load(pretrained_model_name_or_path: str, relcat_config: ConfigRelCAT, **kwargs) -> RelExtrBertConfig
Source code in medcat-v2/medcat/components/addons/relation_extraction/bert/config.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | |