medcat.preprocessing.taggers

Module Contents

Classes

_Tagger

Functions

tag_skip_and_punct(nlp, name, config)

Detects and tags spacy tokens that are punctuation and that should be skipped.

medcat.preprocessing.taggers.tag_skip_and_punct(nlp, name, config)

Detects and tags spacy tokens that are punctuation and that should be skipped.

Parameters:
  • nlp (Language) – The base spacy NLP pipeline.

  • name (str) – The component instance name.

  • config (Config) – Global config for medcat.

Returns:

_Tagger – The tagger

Return type:

_Tagger

class medcat.preprocessing.taggers._Tagger(nlp, name, config)

Bases: medcat.pipeline.pipe_runner.PipeRunner

Parameters:
__init__(nlp, name, config)
Parameters:
Return type:

None

__call__(doc)
Parameters:

doc (spacy.tokens.Doc) –

Return type:

spacy.tokens.Doc