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

对话式词典编纂:通过自然语言使用SPARQL查询知识图谱上的词典数据

Conversational Lexicography: Querying Lexicographic Data on Knowledge Graphs with SPARQL through Natural Language

Department of Informatics University of Zurich(信息学院苏黎世大学);Department of Computational Linguistics University of Zurich(计算语言学系苏黎世大学)

Kilian Sennrich, Sina Ahmadi

AI总结:

本文针对非专家用户查询知识图谱词典数据的难题,提出多维分类体系和含120万映射的模板数据集,实验表明仅GPT-3.5-Turbo具备泛化能力,但稳健泛化仍面临挑战。

摘要:

知识图谱为表示词典数据的词汇-语义结构提供了极佳的解决方案。然而,对于许多能够受益于该技术优势的非专家用户而言,使用SPARQL查询语言构成了相当大的障碍。本文解决了在诸如Wikidata等知识图谱上为词典数据检索创建自然语言接口的挑战。我们通过四个维度开发了一个多维分类体系,用以捕捉Wikidata词典数据本体模块的复杂性,并创建了一个基于模板的数据集,包含超过120万条从自然语言表述到SPARQL查询的映射。我们使用GPT-2(124M)、Phi-1.5(1.3B)和GPT-3.5-Turbo进行的实验揭示了模型能力的显著差异。虽然所有模型在熟悉的模式上表现良好,但只有GPT-3.5-Turbo展现出有意义的泛化能力,这表明模型规模和多样化的预训练对于该领域的适应性至关重要。然而,在实现稳健的泛化、处理多样化的语言数据以及开发能够适应词典知识表示全部复杂性的可扩展解决方案方面,仍然存在重大挑战。

英文摘要:

Knowledge graphs offer an excellent solution for representing the lexical-semantic structures of lexicographic data. However, working with the SPARQL query language represents a considerable hurdle for many non-expert users who could benefit from the advantages of this technology. This paper addresses the challenge of creating natural language interfaces for lexicographic data retrieval on knowledge graphs such as Wikidata. We develop a multidimensional taxonomy capturing the complexity of Wikidata's lexicographic data ontology module through four dimensions and create a template-based dataset with over 1.2 million mappings from natural language utterances to SPARQL queries. Our experiments with GPT-2 (124M), Phi-1.5 (1.3B), and GPT-3.5-Turbo reveal significant differences in model capabilities. While all models perform well on familiar patterns, only GPT-3.5-Turbo demonstrates meaningful generalization capabilities, suggesting that model size and diverse pre-training are crucial for adaptability in this domain. However, significant challenges remain in achieving robust generalization, handling diverse linguistic data, and developing scalable solutions that can accommodate the full complexity of lexicographic knowledge representation.

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

↑