Skip to content

medcat.components.linking.no_action_linker

Classes:

NoActionLinker

Bases: AbstractCoreComponent

Methods:

Attributes:

name class-attribute instance-attribute

name = 'no_action'

create_new_component classmethod

create_new_component(cnf: ComponentConfig, tokenizer: BaseTokenizer, cdb: CDB, vocab: Vocab, model_load_path: Optional[str]) -> NoActionLinker
Source code in medcat-v2/medcat/components/linking/no_action_linker.py
20
21
22
23
24
25
@classmethod
def create_new_component(
        cls, cnf: ComponentConfig, tokenizer: BaseTokenizer,
        cdb: CDB, vocab: Vocab, model_load_path: Optional[str]
        ) -> 'NoActionLinker':
    return cls()

get_type

get_type()
Source code in medcat-v2/medcat/components/linking/no_action_linker.py
14
15
def get_type(self):
    return CoreComponentType.linking