medcat.utils.defaults
Attributes
Classes
Functions
|
|
|
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