medcat.tokenizing.spacy_impl.utils

Attributes

logger

Functions

has_spacy_model(model_name)

Checks if the spacy model is available.

ensure_spacy_model(model_name)

Ensure the specified spacy model exists.

Module Contents

medcat.tokenizing.spacy_impl.utils.logger
medcat.tokenizing.spacy_impl.utils.has_spacy_model(model_name)

Checks if the spacy model is available.

Parameters:

model_name (str) – The model name.

Returns:

bool – True if the model is available, False otherwise.

Return type:

bool

medcat.tokenizing.spacy_impl.utils.ensure_spacy_model(model_name)

Ensure the specified spacy model exists.

If the model does not currently exist, it will attempt downloading it.

Parameters:

model_name (str) – The spacy model name.

Return type:

None