medcat.utils.relation_extraction.config
Module Contents
Classes
Base class for the RelCAT models |
Attributes
- medcat.utils.relation_extraction.config.logger
- class medcat.utils.relation_extraction.config.BaseConfig_RelationExtraction(pretrained_model_name_or_path, **kwargs)
Bases:
transformers.PretrainedConfigBase class for the RelCAT models
- name = 'base-config-relcat'
- __init__(pretrained_model_name_or_path, **kwargs)
- to_dict()
Serializes this instance to a Python dictionary.
- Returns:
`Dict[str, Any]` – Dictionary of all the attributes that make up this configuration instance.
- save(save_path)
- Parameters:
save_path (str) –
- classmethod load(pretrained_model_name_or_path, relcat_config, **kwargs)
- Parameters:
pretrained_model_name_or_path (str) –
relcat_config (medcat.config_rel_cat.ConfigRelCAT) –
- Return type: