medcat.ner.vocab_based_ner
Module Contents
Classes
Attributes
- medcat.ner.vocab_based_ner.logger
- class medcat.ner.vocab_based_ner.NER(cdb, config)
Bases:
medcat.pipeline.pipe_runner.PipeRunner
- Parameters:
cdb (medcat.cdb.CDB) –
config (medcat.config.Config) –
- name = 'cat_ner'
- __init__(cdb, config)
- Parameters:
cdb (medcat.cdb.CDB) –
config (medcat.config.Config) –
- Return type:
None
- __call__(doc)
Detect candidates for concepts - linker will then be able to do the rest. It adds entities to the doc._.ents and each entity can have the entitiy._.link_candidates - that the linker will resolve.
- Parameters:
doc (Doc) – Spacy document to be annotated with named entities.
- Returns:
doc (Doc) – Spacy document with detected entities.
- Return type:
spacy.tokens.Doc