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

Author:

Staniek Michael1,Schumann Raphael2,Züfle Maike13,Riezler Stefan45

Affiliation:

1. Computational Linguistics, Heidelberg University, Germany. zuefle@cl.uni-heidelberg.de

2. Computational Linguistics, Heidelberg University, Germany. rschuman@cl.uni-heidelberg.de

3. School of Informatics, University of Edinburgh, UK

4. Computational Linguistics, Heidelberg University, Germany. riezler@cl.uni-heidelberg.de

5. IWR, Heidelberg University, Germany

Abstract

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. 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,1 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.

Publisher

MIT Press

Reference36 articles.

1. Language models are few-shot learners;Brown,2020

2. Teaching large language models to self-debug;Chen;arXiv preprint arXiv:2304.05128,2023

3. A corpus and semantic parser for multilingual natural language querying of OpenStreetMap;Haas,2016

4. Learning a neural semantic parser from user feedback;Iyer,2017

5. Learning to transform natural to formal languages;Kate,2005

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3