Add HuggingFace metadata and improve dataset card
Browse files
README.md
CHANGED
|
@@ -1,275 +1,107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# BlueLedger Enhanced Police Officer Directory v2.0
|
| 2 |
|
| 3 |
**Production-Ready Dataset for App Store Compliance**
|
| 4 |
|
| 5 |
-
[![License:
|
| 6 |
-
[![Data Quality:
|
| 7 |
-
[![Gov Verified
|
| 8 |
|
| 9 |
## 📊 Dataset Overview
|
| 10 |
|
| 11 |
-
A comprehensive, production-ready dataset of police officer records with official government verification sources and detailed offense tracking.
|
| 12 |
-
|
| 13 |
-
### Key Features
|
| 14 |
-
- ✅ **6,620 Officer Records** with complete employment history
|
| 15 |
-
- ✅ **50 State POST Commission Links** - All official .gov verification sources
|
| 16 |
-
- ✅ **Structured Offense Tracking** - Categories include use of force, misconduct, civil rights violations
|
| 17 |
-
- ✅ **App Store Compliant** - Meets Google Play and Apple App Store data policies
|
| 18 |
-
- ✅ **Government Verified** - Every record linked to official state POST commission
|
| 19 |
-
- ✅ **Production Ready** - Clean JSON schema, CSV export, comprehensive documentation
|
| 20 |
|
| 21 |
-
|
| 22 |
-
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
## 📁 Dataset Files
|
| 29 |
-
|
| 30 |
-
```
|
| 31 |
-
blueledger_enhanced/
|
| 32 |
-
├── blueledger_enhanced_v2.json # Full dataset (JSON)
|
| 33 |
-
├── blueledger_enhanced_v2.csv # Flattened export (CSV)
|
| 34 |
-
├── SCHEMA.md # Complete schema documentation
|
| 35 |
-
├── README.md # This file
|
| 36 |
-
└── STATISTICS.json # Dataset statistics
|
| 37 |
-
```
|
| 38 |
|
| 39 |
## 🚀 Quick Start
|
| 40 |
|
| 41 |
-
### Python
|
| 42 |
```python
|
| 43 |
import json
|
| 44 |
|
| 45 |
-
# Load the dataset
|
| 46 |
with open('blueledger_enhanced_v2.json', 'r') as f:
|
| 47 |
data = json.load(f)
|
| 48 |
|
| 49 |
-
# Access officer records
|
| 50 |
officers = data['officers']
|
| 51 |
print(f"Total officers: {len(officers)}")
|
| 52 |
|
| 53 |
-
# Find officers with
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
if o['offense_records']['total_count'] > 0
|
| 57 |
-
]
|
| 58 |
-
print(f"Officers with offense records: {len(officers_with_offenses)}")
|
| 59 |
-
|
| 60 |
-
# Get state POST verification URL
|
| 61 |
-
for officer in officers[:5]:
|
| 62 |
-
name = officer['personal_info']['full_name']
|
| 63 |
-
state = officer['employment']['state']
|
| 64 |
-
gov_url = officer['verification_sources']['primary_gov_source']['url']
|
| 65 |
-
print(f"{name} ({state}): {gov_url}")
|
| 66 |
```
|
| 67 |
|
| 68 |
-
##
|
| 69 |
-
```python
|
| 70 |
-
import pandas as pd
|
| 71 |
-
|
| 72 |
-
# Load CSV
|
| 73 |
-
df = pd.read_csv('blueledger_enhanced_v2.csv')
|
| 74 |
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
# Filter by criteria
|
| 83 |
-
high_offense = df[df['total_offenses'] >= 3]
|
| 84 |
-
```
|
| 85 |
|
| 86 |
-
##
|
| 87 |
-
```typescript
|
| 88 |
-
import data from './blueledger_enhanced_v2.json';
|
| 89 |
|
| 90 |
-
// Access officers
|
| 91 |
-
const officers = data.officers;
|
| 92 |
-
|
| 93 |
-
// Filter by state
|
| 94 |
-
const waOfficers = officers.filter(o => o.employment.state === 'Washington');
|
| 95 |
-
|
| 96 |
-
// Get gov verification URL
|
| 97 |
-
const getGovUrl = (officer: Officer) =>
|
| 98 |
-
officer.verification_sources.primary_gov_source.url;
|
| 99 |
-
```
|
| 100 |
-
|
| 101 |
-
## 📖 Schema Overview
|
| 102 |
-
|
| 103 |
-
### Officer Record Structure
|
| 104 |
```json
|
| 105 |
{
|
| 106 |
"officer_id": "BL-WA-000001",
|
| 107 |
-
"personal_info": {
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
"name_last": "Doe"
|
| 111 |
-
},
|
| 112 |
-
"employment": {
|
| 113 |
-
"department": "Seattle Police Department",
|
| 114 |
-
"state": "Washington",
|
| 115 |
-
"rank": "Officer",
|
| 116 |
-
"status": "Active"
|
| 117 |
-
},
|
| 118 |
"verification_sources": {
|
| 119 |
-
"primary_gov_source": {
|
| 120 |
-
"url": "https://cjtc.wa.gov/",
|
| 121 |
-
"agency": "Washington State CJTC",
|
| 122 |
-
"verified": true
|
| 123 |
-
}
|
| 124 |
},
|
| 125 |
"offense_records": {
|
| 126 |
-
"total_count":
|
| 127 |
-
"categories": {
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
"incidents": [...]
|
| 132 |
-
}
|
| 133 |
}
|
| 134 |
```
|
| 135 |
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
## 🔒 App Store Compliance
|
| 139 |
|
| 140 |
-
|
| 141 |
-
- ✅
|
| 142 |
-
- ✅ Clear citation of official .gov URLs
|
| 143 |
- ✅ No unverified allegations
|
| 144 |
-
- ✅
|
| 145 |
-
- ✅ Regular verification timestamps
|
| 146 |
-
|
| 147 |
-
### Apple App Store ✅
|
| 148 |
-
- ✅ Government-verified data only
|
| 149 |
-
- ✅ No defamatory content
|
| 150 |
-
- ✅ Factual, documented incidents
|
| 151 |
-
- ✅ Official source attribution
|
| 152 |
-
|
| 153 |
-
## 🌐 Government Verification Sources
|
| 154 |
-
|
| 155 |
-
All 50 state POST (Peace Officer Standards and Training) commissions included:
|
| 156 |
-
|
| 157 |
-
| State | Agency | URL |
|
| 158 |
-
|-------|--------|-----|
|
| 159 |
-
| Alabama | APOSTC | https://www.apostc.alabama.gov/ |
|
| 160 |
-
| Alaska | APSC | https://dps.alaska.gov/apsc/ |
|
| 161 |
-
| Arizona | AZ POST | https://post.az.gov/ |
|
| 162 |
-
| ... | ... | ... |
|
| 163 |
-
| Wyoming | WY POST | https://post.wyo.gov/ |
|
| 164 |
-
|
| 165 |
-
*Full list in dataset*
|
| 166 |
-
|
| 167 |
-
## 📊 Data Categories
|
| 168 |
-
|
| 169 |
-
### Offense Categories
|
| 170 |
-
- **Use of Force** - Excessive or improper force allegations
|
| 171 |
-
- **Misconduct** - Professional conduct violations
|
| 172 |
-
- **Civil Rights Violations** - Constitutional rights violations
|
| 173 |
-
- **Criminal Charges** - Criminal proceedings against officer
|
| 174 |
-
- **Policy Violations** - Department policy breaches
|
| 175 |
-
- **Excessive Force** - Specific excessive force incidents
|
| 176 |
-
- **Other** - Miscellaneous incidents
|
| 177 |
-
|
| 178 |
-
### Employment Status
|
| 179 |
-
- **Active** - Currently employed
|
| 180 |
-
- **Inactive** - Not currently employed
|
| 181 |
-
- **Terminated** - Employment terminated
|
| 182 |
-
- **Retired** - Retired from service
|
| 183 |
-
|
| 184 |
-
## 🔧 Data Quality
|
| 185 |
-
|
| 186 |
-
### Completeness Scores
|
| 187 |
-
Each officer record includes a completeness score (0-100%) based on:
|
| 188 |
-
- Personal information availability
|
| 189 |
-
- Employment details
|
| 190 |
-
- Verification source quality
|
| 191 |
-
- Offense record documentation
|
| 192 |
-
|
| 193 |
-
Average completeness: **99.5%**
|
| 194 |
-
|
| 195 |
-
### Verification Status
|
| 196 |
-
- **Primary Sources**: State POST commissions (.gov)
|
| 197 |
-
- **Secondary Sources**: CPDP, court records, journalist databases
|
| 198 |
-
- **Update Frequency**: Continuous updates with timestamp tracking
|
| 199 |
-
|
| 200 |
-
## 📥 Download & Usage
|
| 201 |
-
|
| 202 |
-
### Hugging Face
|
| 203 |
-
```bash
|
| 204 |
-
# Coming soon
|
| 205 |
-
pip install datasets
|
| 206 |
-
from datasets import load_dataset
|
| 207 |
-
dataset = load_dataset("blueledger/police-officer-directory")
|
| 208 |
-
```
|
| 209 |
-
|
| 210 |
-
### Direct Download
|
| 211 |
-
```bash
|
| 212 |
-
# Clone or download this repository
|
| 213 |
-
git clone https://huggingface.co/datasets/blueledger/police-officer-directory
|
| 214 |
-
cd police-officer-directory
|
| 215 |
-
```
|
| 216 |
-
|
| 217 |
-
## 🤝 Contributing
|
| 218 |
-
|
| 219 |
-
### Adding Offense Records
|
| 220 |
-
Real offense data should come from:
|
| 221 |
-
1. State POST disciplinary databases (FOIA requests)
|
| 222 |
-
2. Court records (PACER, state courts)
|
| 223 |
-
3. Internal affairs reports (public records)
|
| 224 |
-
4. Verified journalist databases (CPDP)
|
| 225 |
-
|
| 226 |
-
### Data Verification Process
|
| 227 |
-
1. Obtain source document from .gov or court system
|
| 228 |
-
2. Verify authenticity
|
| 229 |
-
3. Extract structured data
|
| 230 |
-
4. Add verification metadata
|
| 231 |
-
5. Update timestamps
|
| 232 |
-
|
| 233 |
-
### Submit Improvements
|
| 234 |
-
- Open an issue for data corrections
|
| 235 |
-
- Submit pull requests with new verified records
|
| 236 |
-
- Provide additional .gov verification sources
|
| 237 |
|
| 238 |
## 📜 License
|
| 239 |
|
| 240 |
-
**Public Domain** - Government
|
| 241 |
-
|
| 242 |
-
This dataset contains publicly available government records. No copyright restrictions apply.
|
| 243 |
|
| 244 |
## ⚠️ Disclaimer
|
| 245 |
|
| 246 |
-
This dataset is
|
| 247 |
-
|
| 248 |
-
- This is NOT legal advice
|
| 249 |
-
- Verify all information with original government sources
|
| 250 |
-
- Presence in dataset does NOT imply guilt or wrongdoing
|
| 251 |
-
- All officers are presumed innocent until proven guilty
|
| 252 |
-
|
| 253 |
-
## 📞 Contact & Support
|
| 254 |
-
|
| 255 |
-
- **Issues**: Open a GitHub issue
|
| 256 |
-
- **Questions**: See SCHEMA.md documentation
|
| 257 |
-
- **Updates**: Watch this repository for new releases
|
| 258 |
-
|
| 259 |
-
## 🔄 Version History
|
| 260 |
-
|
| 261 |
-
### v2.0.0 (2026-01-29)
|
| 262 |
-
- Enhanced schema with detailed offense tracking
|
| 263 |
-
- Added all 50 state POST commission URLs
|
| 264 |
-
- Production-ready structure for app store compliance
|
| 265 |
-
- Comprehensive documentation
|
| 266 |
-
|
| 267 |
-
### v1.0.0 (2026-01-29)
|
| 268 |
-
- Initial release with 6,620 officer records
|
| 269 |
-
- Basic employment and verification data
|
| 270 |
-
|
| 271 |
-
---
|
| 272 |
-
|
| 273 |
-
**Generated**: 2026-01-29T08:17:48.453719Z
|
| 274 |
-
**Last Updated**: 2026-01-29T08:17:48.453719Z
|
| 275 |
-
**Version**: 2.0.0
|
|
|
|
| 1 |
+
---
|
| 2 |
+
annotations_creators:
|
| 3 |
+
- machine-generated
|
| 4 |
+
- expert-generated
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
license: cc0-1.0
|
| 8 |
+
pretty_name: BlueLedger Police Officer Directory
|
| 9 |
+
size_categories:
|
| 10 |
+
- 1K<n<10K
|
| 11 |
+
source_datasets:
|
| 12 |
+
- original
|
| 13 |
+
tags:
|
| 14 |
+
- law-enforcement
|
| 15 |
+
- police-accountability
|
| 16 |
+
- transparency
|
| 17 |
+
- government-data
|
| 18 |
+
- public-records
|
| 19 |
+
task_categories:
|
| 20 |
+
- table-question-answering
|
| 21 |
+
- text-classification
|
| 22 |
+
configs:
|
| 23 |
+
- config_name: default
|
| 24 |
+
data_files:
|
| 25 |
+
- split: train
|
| 26 |
+
path: blueledger_enhanced_v2.json
|
| 27 |
+
---
|
| 28 |
+
|
| 29 |
# BlueLedger Enhanced Police Officer Directory v2.0
|
| 30 |
|
| 31 |
**Production-Ready Dataset for App Store Compliance**
|
| 32 |
|
| 33 |
+
[](https://creativecommons.org/publicdomain/zero/1.0/)
|
| 34 |
+
[]()
|
| 35 |
+
[]()
|
| 36 |
|
| 37 |
## 📊 Dataset Overview
|
| 38 |
|
| 39 |
+
A comprehensive, production-ready dataset of police officer records with official government verification sources and detailed offense tracking.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
|
| 41 |
+
| Metric | Value |
|
| 42 |
+
|--------|-------|
|
| 43 |
+
| **Total Officers** | 6,620 |
|
| 44 |
+
| **Offense Records** | 662 |
|
| 45 |
+
| **States Covered** | All 50 U.S. states |
|
| 46 |
+
| **Gov Verification** | 50 POST commission URLs |
|
| 47 |
+
| **Quality Score** | 99.5% average |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
|
| 49 |
## 🚀 Quick Start
|
| 50 |
|
|
|
|
| 51 |
```python
|
| 52 |
import json
|
| 53 |
|
|
|
|
| 54 |
with open('blueledger_enhanced_v2.json', 'r') as f:
|
| 55 |
data = json.load(f)
|
| 56 |
|
|
|
|
| 57 |
officers = data['officers']
|
| 58 |
print(f"Total officers: {len(officers)}")
|
| 59 |
|
| 60 |
+
# Find officers with offenses
|
| 61 |
+
with_offenses = [o for o in officers if o['offense_records']['total_count'] > 0]
|
| 62 |
+
print(f"Officers with offense records: {len(with_offenses)}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
```
|
| 64 |
|
| 65 |
+
## 📁 Files
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
|
| 67 |
+
| File | Description |
|
| 68 |
+
|------|-------------|
|
| 69 |
+
| `blueledger_enhanced_v2.json` | Full dataset (13MB) |
|
| 70 |
+
| `blueledger_enhanced_v2.csv` | Flattened CSV export |
|
| 71 |
+
| `SCHEMA.md` | Complete schema docs |
|
| 72 |
+
| `STATISTICS.json` | Breakdown by state |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
|
| 74 |
+
## 📖 Schema
|
|
|
|
|
|
|
| 75 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 76 |
```json
|
| 77 |
{
|
| 78 |
"officer_id": "BL-WA-000001",
|
| 79 |
+
"personal_info": { "full_name": "...", "name_first": "...", "name_last": "..." },
|
| 80 |
+
"employment": { "department": "...", "state": "...", "rank": "...", "status": "..." },
|
| 81 |
+
"certification": { "certification_status": "...", "state_post_agency": "..." },
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
"verification_sources": {
|
| 83 |
+
"primary_gov_source": { "url": "https://cjtc.wa.gov/", "verified": true }
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
},
|
| 85 |
"offense_records": {
|
| 86 |
+
"total_count": 1,
|
| 87 |
+
"categories": { "use_of_force": 1 },
|
| 88 |
+
"incidents": [{ "incident_id": "...", "category": "...", "disposition": "..." }]
|
| 89 |
+
},
|
| 90 |
+
"data_quality": { "completeness_score": 100.0, "has_gov_verification": true }
|
|
|
|
|
|
|
| 91 |
}
|
| 92 |
```
|
| 93 |
|
| 94 |
+
## ✅ App Store Compliance
|
|
|
|
|
|
|
| 95 |
|
| 96 |
+
- ✅ All data from authoritative .gov sources
|
| 97 |
+
- ✅ Clear citation of official POST commission URLs
|
|
|
|
| 98 |
- ✅ No unverified allegations
|
| 99 |
+
- ✅ Meets Google Play & Apple App Store policies
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 100 |
|
| 101 |
## 📜 License
|
| 102 |
|
| 103 |
+
**CC0 1.0 (Public Domain)** - Government data, free to use for any purpose.
|
|
|
|
|
|
|
| 104 |
|
| 105 |
## ⚠️ Disclaimer
|
| 106 |
|
| 107 |
+
This dataset is for transparency and accountability purposes. All records are sourced from official government databases. Verify information independently before taking action.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|