NL4DV

NL4DV transforms natural-language queries into structured analytic specifications for data visualization, implemented in Python and producing JSON objects and Vega-Lite specifications.


Key Features:

  • Python implementation: NL4DV is implemented in Python.
  • Input handling: Accepts a tabular dataset alongside a natural language (NL) query as input.
  • Output format: Generates a JSON object that encapsulates data attributes, analytic tasks, and Vega-Lite specifications.
  • Natural language mapping: Maps natural-language expressions to analytic tasks and visualization encodings.
  • Vega-Lite integration: Produces Vega-Lite chart specifications as part of its output.
  • Multimodal support: Can incorporate speech input for multimodal visualization systems.
  • Jupyter rendering: Produces specifications that can be rendered within Jupyter notebooks.

Scientific Applications:

  • Visualization in Jupyter Notebooks: Render visualizations directly from natural language queries in Jupyter notebook environments.
  • Development of NLIs for Vega-Lite charts: Enable creation and editing of Vega-Lite charts via natural language interfaces.
  • Recreation of data ambiguity widgets: Support recreation of widgets similar to those in the DataTone system to address ambiguities in data interpretation.
  • Multimodal visualization systems: Integrate speech input to enable multimodal interaction with visualizations.

Methodology:

NL4DV parses a natural language query together with a tabular dataset and emits a JSON object containing data attributes, analytic tasks, and Vega-Lite specifications; it can also accept speech input for multimodal systems.

Topics

Details

Tool Type:
command-line tool
Programming Languages:
Python
Added:
1/18/2021
Last Updated:
3/8/2021

Operations

Publications

Narechania A, Srinivasan A, Stasko J. NL4DV: A Toolkit for Generating Analytic Specifications for Data Visualization from Natural Language Queries. IEEE Transactions on Visualization and Computer Graphics. 2021;27(2):369-379. doi:10.1109/tvcg.2020.3030378. PMID:33048704.

PMID: 33048704
Funding: - National Science Foundation: IIS-1717111

Links