gazet-dataset
收藏资源简介:
Gazet数据集是一个用于地理空间任务的合成训练数据集,旨在微调小型语言模型。该数据集基于Overture Maps和Natural Earth的parquet数据集生成,主要支持两种任务:SQL生成和地点提取。SQL生成任务的输入为用户查询和模糊匹配的候选实体(CSV格式),输出为DuckDB空间SQL查询;地点提取任务的输入为自然语言查询,输出为包含地名、国家代码和子类型的结构化JSON。数据格式为JSONL,每行采用聊天模板格式的对话。数据集包含训练集、验证集和测试集,分别针对SQL生成和地点提取任务。数据通过SQL模板从真实的Overture/Natural Earth空间关系(如邻接、包含、相交等)生成,模板同时产生训练SQL和自然语言问题。数据集规模中等(10K<n<100K),语言为英语。
The Gazet dataset is a synthetic training dataset for geospatial tasks, designed to fine-tune small language models. It is generated based on parquet datasets from Overture Maps and Natural Earth, primarily supporting two tasks: SQL generation and place extraction. For the SQL generation task, the input is a user query and fuzzy-matched candidate entities (in CSV format), and the output is a DuckDB spatial SQL query. For the place extraction task, the input is a natural language query, and the output is structured JSON containing place names, country codes, and subtypes. The data format is JSONL, with each line in a chat template format dialogue. The dataset includes training, validation, and test sets, each tailored for SQL generation and place extraction tasks. The data is generated through SQL templates from real Overture/Natural Earth spatial relationships (such as adjacency, containment, intersection, etc.), with the templates simultaneously producing training SQL and natural language questions. The dataset is medium-sized (10K<n<100K) and in English.
Gazet数据集概述
数据集基本信息
- 许可证: MIT
- 任务类别: 文本生成
- 语言: 英语
- 标签: 文本到SQL、地理空间、地理编码、DuckDB、合成数据
- 数据规模: 10K<n<100K
数据集目的
为在Overture Maps和Natural Earth的parquet数据集上执行地理空间任务的小型语言模型微调提供合成训练数据。
核心任务
1. SQL生成 (sql/)
- 输入: 用户查询 + 模糊匹配的候选实体(CSV格式)
- 输出: DuckDB空间SQL查询
2. 地点提取 (places/)
- 输入: 自然语言查询
- 输出: 包含地点名称、国家代码和子类型的结构化JSON
数据格式
每个JSONL行都是一个采用聊天模板格式的对话: json { "messages": [ {"role": "system", "content": "..."}, {"role": "user", "content": "..."}, {"role": "assistant", "content": "..."} ] }
数据划分
| 任务 | 训练集 | 验证集 | 测试集 |
|---|---|---|---|
| SQL | sql/train.jsonl |
sql/val.jsonl |
sql/test.jsonl |
| 地点提取 | places/train.jsonl |
places/val.jsonl |
places/test.jsonl |
详细信息可参见stats.json文件中的按类别样本计数。
数据生成方法
数据通过将SQL模板应用于真实的Overture/Natural Earth空间关系(邻接、包含、相交等)生成。模板同时产生训练用的SQL语句和自然语言问题。
相关资源
- 代码与开发: 训练和评估所使用的代码位于developmentseed/gazet GitHub仓库。
- 已训练模型:
developmentseed/gazet-model- 基于此数据集微调的Qwen3.5-0.8B模型。




