installed_models#
- scikitplot.cleanprompt.installed_models()[source]#
Return the spaCy models installed here, mapped to their versions.
- Returns:
- dict of str to str
Model name to version. Empty when spaCy is not installed or no model is present.
- Return type:
Notes
Developer notes. Reads distribution metadata rather than importing spaCy or loading anything, so this is safe to call from
doctorand costs a directory scan. A spaCy model is an ordinary installed distribution, which is what makes that possible.
Gallery examples#
Cleanprompt Moderate: Policies, Entities, and the Vault’s Lifecycle
Cleanprompt Moderate: Policies, Entities, and the Vault's Lifecycle