Driver message review — classified dataset

Driver message review

How to decide

Dataset composition

For the UI developer — schema, types, how to load

Record fields

TypeScript



        

Loading it

// The same JSON the Download button gives you.
const res  = await fetch('/dataset.json');
const data = await res.json();

data.records.filter(r => r.label === 'DRIVER_ISSUE' && r.confidence >= 0.7);

// Route on the top-level label; use signals[] for a second-level queue
// ('issue:breakdown', 'issue:detention', 'request:home_time', ...).
// reported_by_staff === true means office staff relayed the driver's problem —
// render it differently from a message the driver wrote.

Regenerating

python scripts/export_dataset.py corpus.csv -o review/dataset.json \
    --per-label 120 --mode hybrid
python scripts/build_review.py          # rewrites review/index.html

Records

Label
Issue
Request