medcat.tokenizing.spacy_impl.utils ================================== .. py:module:: medcat.tokenizing.spacy_impl.utils Attributes ---------- .. autoapisummary:: medcat.tokenizing.spacy_impl.utils.logger Functions --------- .. autoapisummary:: medcat.tokenizing.spacy_impl.utils.has_spacy_model medcat.tokenizing.spacy_impl.utils.ensure_spacy_model Module Contents --------------- .. py:data:: logger .. py:function:: has_spacy_model(model_name) Checks if the spacy model is available. :param model_name: The model name. :type model_name: str :Returns: **bool** -- True if the model is available, False otherwise. .. py:function:: ensure_spacy_model(model_name) Ensure the specified spacy model exists. If the model does not currently exist, it will attempt downloading it. :param model_name: The spacy model name. :type model_name: str