Applying a visual analytics intent language to generate data visualizations
Abstract
A computing device receives a natural language command directed to a data source. The device applies one or more respective rules to determine whether the natural language command comprises an ambiguous and/or underspecified request. In accordance with a determination that the natural language command comprises an ambiguous and/or underspecified request, the device infers information to resolve the ambiguous and/or underspecified request according to (i) the one or more respective rules, (ii) metadata for the data source, and (iii) metadata for one or more data fields specified in the natural language command. The device updates a respective intent specification based on the inferred information, retrieving data sets from the data source according to the respective intent specification, and generates and displays a data visualization based on the retrieved data sets.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 12 · Forward citations: 0.
Claims (20 — 3 Independent, 17 Dependent)
- Claim 1Independent Claim
A method for generating data visualizations from natural language expressions, comprising: at a computing device including one or more processors and memory storing one or more programs for execution by the one or more processors: receiving a user-specified natural language command directed to a data source, the natural language command including a first data field of the data source; in accordance with receiving the user-specified natural language command: applying one or more respective rules to determine whether the natural language command comprises an ambiguous request and/or an underspecified request, wherein: an ambiguous request specifies more than one attribute for a data property in a set of data properties of a respective intent specification; and an underspecified request specifies no attribute for at least one data property in the set of data properties of the respective intent specification; in accordance with a determination that the natural language command comprises the ambiguous request and/or the underspecified request, inferring information to resolve the ambiguous request and/or the underspecified request according to (i) the one or more respective rules, (ii) metadata for the data source, and (iii) metadata for the first data field specified in the natural language command; updating the respective intent specification based on the inferred information; retrieving one or more data sets from the data source according to the respective intent specification; and generating and displaying at least one data visualization based on the retrieved one or more data sets.
- Claim 2Depends on #1
The method of claim 1, wherein the at least one data visualization has a visualization type associated with the respective intent specification.
- Claim 3Depends on #1
The method of claim 1, further comprising: inferring information to resolve the ambiguous request and/or the underspecified request according to context from previous requests, data fields identified in the previous requests, attributes identified in the previous requests, user-provided interpretations, and/or user-provided definitions.
- Claim 4Depends on #1
The method of claim 1, wherein: the natural language command further includes a first term that is different from the first data field; and the method further includes concurrently displaying, with the at least one data visualization, an interpretation of the first term of the natural language command.
- Claim 5Depends on #1
The method of claim 1, wherein applying the one or more respective rules to determine whether the natural language command comprises an ambiguous request and/or an underspecified request includes: in accordance with a determination that the natural language command specifies a measurable adjective and does not specify a quantity: establishing that the natural language command comprises an ambiguous request; and inferring a numeric value for the quantity.
- Claim 6Depends on #1
The method of claim 1, wherein: applying the one or more respective rules to determine whether the natural language command comprises an ambiguous request and/or an underspecified request includes: determining whether the natural language command specifies attributes for each data property of the set of data properties; in accordance with a determination that the natural language command specifies no attribute for a first data property in the set of data properties for the respective intent specification: establishing that the natural language command comprises an underspecified request; determining one or more possible fields for the first data property; and in accordance with a determination that there is exactly one possible field for the first data property, inferring the one possible field as the first data property.
- Claim 7Depends on #6
The method of claim 6, wherein applying the one or more respective rules to determine whether the natural language command comprises an ambiguous request and/or an underspecified request includes: in accordance with a determination that there are multiple possible fields for the first data property, creating a variable field to contain all the multiple possible fields.
- Claim 8Depends on #1
The method of claim 1, further comprising: prior to generating and displaying the at least one data visualization: generating a respective output specification that includes (i) a respective recommended data visualization type, selected from a predefined set of data visualization types, for the data source, and (ii) one or more respective data visualization parameters that (1) include the inferred information and (2) specify how to render a data visualization of the respective recommended data visualization type.
- Claim 9Depends on #1
The method of claim 1, further comprising: in accordance with receiving the user-specified natural language command, identifying an intent type corresponding to the natural language command.
- Claim 10Depends on #9
The method of claim 9, wherein the intent type is one or more of: a focus intent, a trend intent, a correlation intent, a distribution intent, a geographic intent, an encoding intent, and a fields intent.
- Claim 11Depends on #9
The method of claim 9, further comprising: in accordance with receiving the user-specified natural language command: formulating the respective intent specification according to the identified intent type, including determining respective properties of the respective intent specification according to: predefined attributes associated with the identified intent type; and the first data field of the data source specified in the natural language command.
- Claim 12Depends on #1
The method of claim 1, wherein the metadata for the data source includes metadata for one or more of: semantics of data fields; data field types corresponding to the data fields; statistics of the data fields; derivations of the data fields; and/or default bin sizes corresponding to the data fields.
- Claim 13Depends on #12
The method of claim 12, wherein the data field types include one or more of: a categorical field type, a time field type, a geographical field type, a currency field type, a quantitative dependent field type, a quantitative independent field type, a latitude field type, and a longitude field type.
- Claim 14Independent Claim
A computing device, comprising: one or more processors; and memory coupled to the one or more processors, the memory storing one or more programs configured to be executed by the one or more processors, the one or more programs including instructions for: receiving a user-specified natural language command directed to a data source, the natural language command including a first data field of the data source; in accordance with receiving the user-specified natural language command: applying one or more respective rules to determine whether the natural language command comprises an ambiguous request and/or an underspecified request, wherein an ambiguous request specifies more than one attribute for a data property in a set of data properties of a respective intent specification; and an underspecified request specifies no attribute for at least one data property in the set of data properties of the respective intent specification; in accordance with a determination that the natural language command comprises the ambiguous request and/or the underspecified request, inferring information to resolve the ambiguous request and/or the underspecified request according to (i) the one or more respective rules, (ii) metadata for the data source, and (iii) metadata for the first data field specified in the natural language command; updating the respective intent specification based on the inferred information; retrieving one or more data sets from the data source according to the respective intent specification; and generating and displaying at least one data visualization based on the retrieved one or more data sets.
- Claim 15Depends on #14
The computing device of claim 14, the one or more programs including instructions for: inferring information to resolve the ambiguous request and/or the underspecified request according to context from previous requests, data fields identified in the previous requests, attributes identified in the previous requests, user-provided interpretations, and/or user-provided definitions.
- Claim 16Depends on #14
The computing device of claim 14, wherein: the natural language command further includes a first term that is different from the first data field; and the one or more programs further include instructions for: concurrently displaying, with the at least one data visualization, an interpretation of the first term of the natural language command.
- Claim 17Depends on #14
The computing device of claim 14, wherein the instructions for applying the one or more respective rules to determine whether the natural language command comprises an ambiguous request and/or an underspecified request include instructions for: in accordance with a determination that the natural language command specifies a measurable adjective and does not specify a quantity: establishing that the natural language command comprises an ambiguous request; and inferring a numeric value for the quantity.
- Claim 18Depends on #14
The computing device of claim 14, the one or more programs including instructions for: prior to generating and displaying the at least one data visualization: generating a respective output specification that includes (i) a respective recommended data visualization type, selected from a predefined set of data visualization types, for the data source, and (ii) one or more respective data visualization parameters that (1) include the inferred information and (2) specify how to render a data visualization of the respective recommended data visualization type.
- Claim 19Depends on #14
The computing device of claim 14, the one or more programs including instructions for: in accordance with receiving the user-specified natural language command, identifying an intent type corresponding to the natural language command.
- Claim 20Independent Claim
A non-transitory computer-readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a computing device, cause the computing device to perform operations comprising: receiving a user-specified natural language command directed to a data source, the natural language command including a first data field of the data source; in accordance with receiving the user-specified natural language command: applying one or more respective rules to determine whether the natural language command comprises an ambiguous request and/or an underspecified request, wherein an ambiguous request specifies more than one attribute for a data property in a set of data properties of a respective intent specification; and an underspecified request specifies no attribute for at least one data property in the set of data properties of the respective intent specification; in accordance with a determination that the natural language command comprises the ambiguous request and/or the underspecified request, inferring information to resolve the ambiguous request and/or the underspecified request according to (i) the one or more respective rules, (ii) metadata for the data source, and (iii) metadata for the first data field specified in the natural language command; updating the respective intent specification based on the inferred information; retrieving one or more data sets from the data source according to the respective intent specification; and generating and displaying at least one data visualization based on the retrieved one or more data sets.
Technical Overview & Description
RELATED APPLICATIONS This application is a continuation of U.S. patent application Ser. No. 18/148,258, filed Dec. 29, 2022, entitled “ Applying a Visual Analytics Intent Language to Generate Data Visualizations, ” which is a continuation of U.S. patent application Ser. No. 17/220,821, filed Apr. 1, 2021, now U.S. Pat. No. 11,567,967, issued Jan. 31, 2023, entitled “ Applying a Visual Analytics Intent Language to Infer Ambiguous or Underspecified Intent, ” which is a continuation of U.S. patent application Ser. No. 17/219,784, filed Mar. 31, 2021, now U.S. Pat. No. 11,409,763, issued Aug. 9, 2022, entitled “ Applying a Visual Analytics Intent Language to Generate Data Visualizations, ” which claims priority to U.S. Provisional Patent Application No. 63/168,212, filed Mar. 30, 2021, entitled “ Applying a Visual Analytics Intent Language to Generate Data Visualizations, ” each of which is incorporated by reference herein in its entirety. This application is related to the following applications, each of which is incorporated by reference herein in its entirety: (i) U.S. patent application Ser. No. 16/162,332, filed Oct. 16, 2018, entitled “ Methods and Systems for Building a View of a Dataset Incrementally According to Characteristics of User-Selected Data Fields, ” now U.S. Pat. No. 11,068,122, issued on Jul. 20, 2021; and (ii) U.S. patent application Ser. No. 15/908,709, filed Feb. 28, 2018, entitled “ Constructing Data Visualization Options for a Data Set According to User-Selected Data Fields, ” now U.S. Pat. No. 11,500,882, issued on Nov. 15, 2022. TECHNICAL FIELD The disclosed implementations relate generally to data visualization and more specifically to systems, methods, and user interfaces that apply a visual analytics intent language to generate data visualizations and analyze data. BACKGROUND Visual analytics tools enable a user to understand a data set visually and make informed decisions. Increasingly, visual analytics tools are incorporating features suc
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (12)
Non-Patent Literature (10)
- Setlur, Notice of Allowance, U.S. Appl. No. 17/219,784, Mar. 22, 2022, 11 pgs.
- Setlur, Notice of Allowance, U.S. Appl. No. 17/220,821, Jun. 6, 2022, 11 pgs.
- Setlur, Notice of Allowance, U.S. Appl. No. 17/220,821, Oct. 4, 2022, 18 pgs.
- Setlur, Notice of Allowance, U.S. Appl. No. 17/220,835, Jun. 23, 2022, 10 pgs.
- Setlur, Notice of Allowance, U.S. Appl. No. 17/220,835, Sep. 7, 2022, 7 pgs.
- Tableau Software, LLC, International Search Report and Written Opinion, PCT/US2022/022625, Jun. 27, 2022, 21 pgs.
- Setlur, Office Action, U.S. Appl. No. 18/148,258, Nov. 15, 2023, 8 pgs.
- Setlur, Notice of Allowance, U.S. Appl. No. 18/148,258, Feb. 1, 2024, 9 pgs.
- Vidya Setlur et al.,
- “