--- language: en tags: - spam - classification - nlp --- # Spam Classifier This is a simple spam classifier using TF-IDF and Logistic Regression. ## Usage ```python from sklearn.pipeline import Pipeline import joblib model = joblib.load("spam_model.joblib") prediction = model.predict(["You won a free prize!"]) ## Metrics Accuracy: 0.85 F1-score: 0.82