Simplify cleaning transformers and shorten module names

Move cleaning transformers into classifiers/cleaning.py (dropping the
separate cleaning package) and implement them as plain classes rather
than BaseEstimator/TransformerMixin subclasses, since Pipeline only
needs fit/transform via duck typing. Also rename feature_classifier.py
and bag_of_words.py to features.py and bow.py for brevity.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Chris Proctor
2026-06-08 10:02:41 -04:00
parent 5f6f171369
commit bbe8054910
6 changed files with 6 additions and 10 deletions

View File

@@ -3,7 +3,7 @@
Usage:
spam -e
spam classifiers.manual.ManualClassifier
spam classifiers.feature_classifier.FeatureClassifier
spam classifiers.features.FeatureClassifier
spam classifiers.manual.ManualClassifier -t 0.2
spam classifiers.manual.ManualClassifier -a
spam classifiers.manual.ManualClassifier -a 5