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

NL4DV:用于从自然语言查询生成数据可视化分析规范的工具包

NL4DV: A Toolkit for Generating Analytic Specifications for Data Visualization from Natural Language Queries

Arpit Narechania, Arjun Srinivasan, John Stasko

摘要:

自然语言接口(NLI)在可视化数据分析方面表现出了巨大的潜力,它允许人们灵活地指定可视化内容并与之交互。然而,开发可视化NLI仍然是一项具有挑战性的任务,需要低层次的自然语言处理(NLP)技术的实现,以及视觉分析任务和可视化设计的知识。我们提出了NL 4DV,自然语言驱动的数据可视化工具包。NL 4DV是一个Python包,它接受表格数据集和关于该数据集的自然语言查询作为输入。作为响应,工具包返回一个分析规范,该规范被建模为一个JSON对象,包含数据属性、分析任务和与输入查询相关的Vega-Lite规范列表。在此过程中,NL 4DV帮助可能没有NLP背景的可视化开发人员,使他们能够创建新的可视化NLI或将自然语言输入纳入其现有系统。我们通过四个例子展示了NL 4DV的用法和功能:1)在一个笔记本电脑中使用自然语言渲染可视化,2)开发一个NLI来指定和编辑Vega-Lite图表,3)从DataTone系统中重新创建数据歧义小部件,以及4)将语音输入结合起来创建一个多模态可视化系统。

英文摘要:

Natural language interfaces (NLIs) have shown great promise for visual data analysis, allowing people to flexibly specify and interact with visualizations. However, developing visualization NLIs remains a challenging task, requiring low-level implementation of natural language processing (NLP) techniques as well as knowledge of visual analytic tasks and visualization design. We present NL4DV, a toolkit for natural language-driven data visualization. NL4DV is a Python package that takes as input a tabular dataset and a natural language query about that dataset. In response, the toolkit returns an analytic specification modeled as a JSON object containing data attributes, analytic tasks, and a list of Vega-Lite specifications relevant to the input query. In doing so, NL4DV aids visualization developers who may not have a background in NLP, enabling them to create new visualization NLIs or incorporate natural language input within their existing systems. We demonstrate NL4DV's usage and capabilities through four examples: 1) rendering visualizations using natural language in a Jupyter notebook, 2) developing a NLI to specify and edit Vega-Lite charts, 3) recreating data ambiguity widgets from the DataTone system, and 4) incorporating speech input to create a multimodal visualization system.

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

↑