medcat.ner.vocab_based_ner

Module Contents

Classes

NER

Attributes

logger

medcat.ner.vocab_based_ner.logger
class medcat.ner.vocab_based_ner.NER(cdb, config)

Bases: medcat.pipeline.pipe_runner.PipeRunner

Parameters:
name = 'cat_ner'
__init__(cdb, config)
Parameters:
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