Text-to-OverpassQL: A Natural Language Interface for Complex Geodata Querying of OpenStreetMap

Michael Staniek, Raphael Schumann, Maike Züfle, Stefan Riezler
8/30/2023
27 citations
cs.CLcs.AIcs.CY

Official code: raphael-sch/OverpassNL (31 stars, Python, last commit 2024-03-14).

Abstract

We present Text-to-OverpassQL, a task designed to facilitate a natural language interface for querying geodata from OpenStreetMap (OSM). The Overpass Query Language (OverpassQL) allows users to formulate complex database queries and is widely adopted in the OSM ecosystem.

Show full abstract

Generating Overpass queries from natural language input serves multiple use-cases. It enables novice users to utilize OverpassQL without prior knowledge, assists experienced users with crafting advanced queries, and enables tool-augmented large language models to access information stored in the OSM database. In order to assess the performance of current sequence generation models on this task, we propose OverpassNL, a dataset of 8,352 queries with corresponding natural language inputs. We further introduce task specific evaluation metrics and ground the evaluation of the Text-to-OverpassQL task by executing the queries against the OSM database. We establish strong baselines by finetuning sequence-to-sequence models and adapting large language models with in-context examples. The detailed evaluation reveals strengths and weaknesses of the considered learning strategies, laying the foundations for further research into the Text-to-OverpassQL task.

View on arXivView PDF

Code Implementations(1)

Natural Language to Overpass Query Language

314Python, ShellAug 14, 20232 years ago
natural-language-processingosmoverpassoverpass-apioverpass-ql+1 more

Similar Papers

Cite this paper

@article{staniek2023texttooverpassql,
  title  = {Text-to-OverpassQL: A Natural Language Interface for Complex Geodata Querying of OpenStreetMap},
  author = {Michael Staniek and Raphael Schumann and Maike Züfle and Stefan Riezler},
  year   = {2023},
  eprint = {2308.16060},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.16060v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2308.16060.svg)](https://codeofpaper.com/paper/2308.16060)

Discussion