How osbonilla/clasificador-intencion-dmq works
This repository is a Quito citizen-report intention-classification project, with a notebook as its documented end-to-end workflow. It generates synthetic examples, trains and compares text classifiers, evaluates them on synthetic and human-written text and ArcGIS reports, analyzes spatial patterns, and supports ArcGIS deployment. The generator and ArcGIS inference adapter are shown in source; notebook internals are not sampled, so its stages and links are based on README descriptions rather than inspected notebook code.
Main entry points: clasificador_intencion.ipynb Workflow notebook · generar_datos.py Dataset generator · ClasificadorIntencionDMQ.py Text inference adapter · entrenamiento.csv Training set
Components 17
Data generation
- Text templates
generador/textos.py - Dataset generator
generador/generar_datos.py - Training set
datos/entrenamiento.csv - Synthetic test set
datos/prueba_sintetica.csv - Human text test
datos/prueba_humana.csv - Report ground truth
datos/verdad_reportes.csv
Modeling and evaluation
- Workflow notebook
clasificador_intencion.ipynb - TF-IDF baseline
clasificador_intencion.ipynb - Fine-tuned BERT
clasificador_intencion.ipynb - Qwen zero-shot
clasificador_intencion.ipynb - Model evaluation
clasificador_intencion.ipynb
ArcGIS analysis
- Survey123 report layer
- Spatial analysis
clasificador_intencion.ipynb - ArcGIS Online
ArcGIS deployment
- Text inference adapter
arcgis_dlpk/ClasificadorIntencionDMQ.py - ArcGIS Pro classifier
Other components
- Analyst
Connections 19
- Analyst → Workflow notebook: runs workflow
README.md - Dataset generator → Text templates: generates with
generador/generar_datos.py - Dataset generator → Training set: writes
generador/generar_datos.py - Dataset generator → Synthetic test set: writes
generador/generar_datos.py - Workflow notebook → Training set: trains from
README.md - Workflow notebook → TF-IDF baseline: benchmarks
README.md - Workflow notebook → Fine-tuned BERT: fine-tunes
README.md - Workflow notebook → Qwen zero-shot: compares
README.md - Workflow notebook → Model evaluation: evaluates models
README.md - Model evaluation → Synthetic test set: tests on
README.md - Model evaluation → Human text test: tests on
README.md - Workflow notebook → Survey123 report layer: classifies reports
README.md - Workflow notebook → Report ground truth: validates against
README.md - Survey123 report layer → ArcGIS Online: hosted in
README.md - Workflow notebook → Spatial analysis: analyzes patterns
README.md - Spatial analysis → Survey123 report layer: uses reports
README.md - Workflow notebook → Text inference adapter: packages model for
README.md - ArcGIS Pro classifier → Text inference adapter: loads and invokes
arcgis_dlpk/ClasificadorIntencionDMQ.py - Text inference adapter → ArcGIS Pro classifier: returns predictions to
arcgis_dlpk/ClasificadorIntencionDMQ.py