:py:mod:`medcat.ner.vocab_based_ner` ==================================== .. py:module:: medcat.ner.vocab_based_ner Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: medcat.ner.vocab_based_ner.NER Attributes ~~~~~~~~~~ .. autoapisummary:: medcat.ner.vocab_based_ner.logger .. py:data:: logger .. py:class:: NER(cdb, config) Bases: :py:obj:`medcat.pipeline.pipe_runner.PipeRunner` .. py:attribute:: name :value: 'cat_ner' .. py:method:: __init__(cdb, config) .. py:method:: __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 entity._.link_candidates - that the linker will resolve. :param doc: Spacy document to be annotated with named entities. :type doc: Doc :Returns: **doc** (*Doc*) -- Spacy document with detected entities.