toolathon123/logistics-southamerica-quality
Logistics Quality – South America (Brazil & Argentina) Live shipment records collected from the South American (Brazil / Argentina) logistics network for service-quality monitoring and improvement. This dataset supports complaint type classification of customer feedback, on-time/damage KPI reporting, and route-level hotspot analysis (with special attention to cross-border corridors such as São Paulo → Buenos Aires). Collection & real-time nature Records are… See the full description on the dataset page: https://huggingface.co/datasets/toolathon123/logistics-southamerica-quality.
Logistics Quality – South America (Brazil & Argentina)
Live shipment records collected from the South American (Brazil / Argentina) logistics network for service-quality monitoring and improvement. This dataset supports complaint type classification of customer feedback, on-time/damage KPI reporting, and route-level hotspot analysis (with special attention to cross-border corridors such as São Paulo → Buenos Aires).
Collection & real-time nature
Records are ingested from the transport management system in near real-time. Each snapshot is timestamped in UTC. New records can be appended incrementally — see Incremental append — without re-processing historical rows.
Schema (columns)
Complaint categories
Models used for inference
- Primary: `MoritzLaurer/mDeBERTa-v3-base-mnli-xnli` — multilingual zero-shot NLI (XLM-R/DeBERTa family). One model handles both Portuguese (BR) and Spanish (AR) feedback via the Hugging Face Inference API.
- Cross-check: `joeddav/xlm-roberta-large-xnli` — XLM-RoBERTa-large NLI, used to validate predictions on a sample.
- Language-specific pretrained models considered: `neuralmind/bert-base-portuguese-cased` (BERTimbau, pt) and `dccuchile/bert-base-spanish-wwm-cased` (BETO, es).
Incremental append
from datasets import load_dataset
from huggingface_hub import HfApi
api = HfApi()
# append a small batch of new records (only new transport_ids)
new_records = [...] # list of dicts with the schema above (new transport_ids)
api.upload_file(
path_or_fileobj=... , # or use push_to_hub on the dataset
path_in_repo="data/incremental_20260813.parquet",
repo_id="toolathon123/logistics-southamerica-quality",
repo_type="dataset",
)
# Re-run inference only on records lacking a `predicted_complaint`.A fully worked append + re-classification example is provided in the analysis pipeline (see logistics_project/scripts/).
