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:

dict[str, str]

Notes

Developer notes. Reads distribution metadata rather than importing spaCy or loading anything, so this is safe to call from doctor and costs a directory scan. A spaCy model is an ordinary installed distribution, which is what makes that possible.