arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.13740cs.CL
收藏

从文本到CQL:连接自然语言与语料库搜索引擎

From Text to CQL: Bridging Natural Language and Corpus Search Engine

Beijing Language and Culture University(北京语言大学);Beijing Jiaotong University(北京交通大学);Tsinghua University(清华大学);Northeastern University(东北大学)

Luming Lu, Jiyuan An, Yujie Wang, Liner yang, Cunliang Kong, Zhenghao Liu, Shuo Wang, Haozhe Lin, Mingwei Fang, Yaping Huang, Erhong Yang

AI总结:

本文提出首个文本到CQL任务,构建大规模数据集并利用大语言模型实现自然语言到语料库查询语言的自动转换,同时建立评估指标验证方法有效性。

摘要:

自然语言处理(NLP)技术已经彻底改变了我们与信息系统交互的方式,其中一个重要焦点是将自然语言查询转换为诸如SQL之类的形式查询语言。然而,对语料库查询语言(CQL)的关注却较少,而CQL是语言学研究以及文本语料库内部详细分析的关键工具。手工构建CQL查询是一项复杂且耗时的工作,需要大量专业知识,这给研究人员和从业者都带来了显著挑战。本文提出了首个文本到CQL任务,旨在自动化地将自然语言翻译为CQL。我们为该任务提出了一个综合框架,包括一个专门构建的大规模数据集,以及利用大语言模型(LLMs)有效完成文本到CQL任务的方法。此外,我们建立了先进的评估指标,以评估所生成查询的句法和语义准确性。我们创建了基于LLM的创新转换方法并进行了详细实验。结果证明了我们方法的有效性,并为文本到CQL任务的复杂性提供了见解。

英文摘要:

Natural Language Processing (NLP) technologies have revolutionized the way we interact with information systems, with a significant focus on converting natural language queries into formal query languages such as SQL. However, less emphasis has been placed on the Corpus Query Language (CQL), a critical tool for linguistic research and detailed analysis within text corpora. The manual construction of CQL queries is a complex and time-intensive task that requires a great deal of expertise, which presents a notable challenge for both researchers and practitioners. This paper presents the first text-to-CQL task that aims to automate the translation of natural language into CQL. We present a comprehensive framework for this task, including a specifically curated large-scale dataset and methodologies leveraging large language models (LLMs) for effective text-to-CQL task. In addition, we established advanced evaluation metrics to assess the syntactic and semantic accuracy of the generated queries. We created innovative LLM-based conversion approaches and detailed experiments. The results demonstrate the efficacy of our methods and provide insights into the complexities of text-to-CQL task.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑