Update README.md
Browse files123123456789101112131415161718192021222324252627---
license: mit
---# 🧠 BERT Classifier for Black Article Detection
## 📝 Model OverviewThis repository hosts a fine-tuned BERT model (`bert-base-uncased`) for classifying newspaper articles based on whether they center on Black people. The training dataset is provided for full reproducibility.
## 📖 DescriptionThe model was trained on 2,000 manually labeled sentences from historical newspaper articles (1960–1973). Labels indicate if the article primarily concerns Black people.- **Inputs:** `sentence` *(string)*- **Outputs:** `black_story` *(0 or 1)*
## 📊 Performance Metrics- **Training Accuracy:** 93.5%- **Validation Accuracy:** 91.2%- **Precision:** 90.8%- **Recall:** 92.1%
## 🚀 Usage InstructionsTo use this model via Hugging Face Transformers:```pythonfrom transformers import pipelineclassifier = pipeline("text-classification", model="mikemcrae/black-article-classifier")result = classifier("Black activists led a peaceful protest downtown.")print(result)
MIT License © 2025 Mike McRaeTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.README.md+27-3