TFIDF#
- class sdm.processing.text.TFIDF(*, ngram_range: tuple[int, int], max_features: int | None = None, lowercase: bool = True)#
Bases:
EnsembleProcessorEncode text columns as character n-gram TF-IDF vectors.
Tokenization follows scikit-learn’s
char_wbanalyzer: whitespace- delimited words are space-padded before windowing, so a word shorter thannstill yields one n-gram. Fit learns a vocabulary and smoothed idf weights per text column. Transform replaces text with concatenated numerical features (one per retained n-gram), applies those idf weights, L2-normalizes each row, and ignores n-grams unseen at fit time.
Capabilities#
Handled Semantic Types |
|
Requires Fitting |
✅ |