sentiment.NLP

Lazy loader for the spaCy en_core_web_sm model used to lemmatize text.

Usage

Source

sentiment.NLP()

Loads from the user spaCy cache, downloading the model on first use; on failure it records the diagnostic and disables itself so the lexicon path fails open.