medcat.utils.defaults

Attributes

DEFAULT_SPACY_MODEL

DEFAULT_PACK_NAME

COMPONENTS_FOLDER

AVOID_LEGACY_CONVERSION_ENVIRON

Classes

StatusTypes

Functions

default_weighted_average(step[, factor])

workers([workers_override])

Get number of workers.

Module Contents

medcat.utils.defaults.DEFAULT_SPACY_MODEL = 'en_core_web_md'
medcat.utils.defaults.DEFAULT_PACK_NAME = 'medcat2_model_pack'
medcat.utils.defaults.COMPONENTS_FOLDER = 'saved_components'
medcat.utils.defaults.AVOID_LEGACY_CONVERSION_ENVIRON = 'MEDCAT_AVOID_LECACY_CONVERSION'
medcat.utils.defaults.default_weighted_average(step, factor=0.0004)
Parameters:
  • step (int)

  • factor (float)

Return type:

float

medcat.utils.defaults.workers(workers_override=None)

Get number of workers.

Either the number of workers specified (if done so). Or the number of workers available (i.e cpu count - 1).

Parameters:

workers_override (Optional[int], optional) – The number of workers to use. Defaults to None.

Returns:

int – _description_

Return type:

int

class medcat.utils.defaults.StatusTypes
PRIMARY_STATUS_NO_DISAMB = 'P'
PRIMARY_STATUS_W_DISAMB = 'PD'
PRIMARY_STATUS: set[str]
MUST_DISAMBIGATE = 'N'
AUTOMATIC = 'A'
ALLOWED_STATUS
DO_DISAMBUGATION