# US 10,956,656 B2 · System and method for using data and angles to automatically generate a narrative story

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 10,956,656 B2
- Document ID: US10956656B2
- Status: Granted
- Kind: B2
- Application number: 16/689,699
- Filed: 2019-11-20
- Published: 2020-03-19
- Granted: 2021-03-23
- Earliest claimed: 2010-05-13
- Assignees: Narrative Science Inc.
- Applicants: Narrative Science Inc.
- Inventors: Lawrence A. Birnbaum; Kristian J. Hammond; Nicholas D. Allen; John R. Templon
- Web page: https://patentgrep.com/patent/US10956656B2

## CPC

- G06F 40/20: Natural language analysis (semantic analysis of natural language G06F40/30)
- G06F 16/22: Indexing; Data structures therefor; Storage structures
- G06F 16/2365: {Ensuring data consistency and integrity}
- G06F 40/106: Display of layout of documents; Previewing
- G06F 40/166: Editing, e.g. inserting or deleting
- G06F 40/289: Phrasal analysis, e.g. finite state techniques or chunking
- G06Q 10/10: Office automation; Time management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR

## Abstract

A system and method for automatically generating a narrative story receives data and information pertaining to a domain event. The received data and information and/or one or more derived features are then used to identify a plurality of angles for the narrative story. The plurality of angles is then filtered, for example through use of parameters that specify a focus for the narrative story, length of the narrative story, etc. Points associated with the filtered plurality of angles are then assembled and the narrative story is rendered using the filtered plurality of angles and the assembled points.

## Claims

### Claim 1

An apparatus for automatically generating a narrative story about a structured data set, the narrative story comprising natural language text arranged in a narrative format, the apparatus comprising:
a memory in which a plurality of data structures are stored, each of a plurality of the data structures being representative of a characterization of data and having an associated applicability condition, the associated applicability condition for testing against data within or derived from the structured data set to support a determination as to whether the representative characterization for the applicability condition's associated data structure is an accurate characterization of the structured data set; and
a processor in cooperation with the memory, the processor configured to:
compute a plurality of derived features from the structured data set, wherein the structured data set comprises data that falls into a plurality of fields and/or categories and which relates to specific events, situations, entities, or aggregations thereof, and wherein the data of the structured data set includes numeric values;
test data against a plurality of the applicability conditions for a plurality of the data structures in the memory, wherein the tested data comprises at least one of (1) data within the structured data set and (2) data within the computed derived features;
in response to the tests, (1) determine that a plurality of the data structures are candidate data structures that accurately characterize the structured data set and (2) filter the candidate data structures to select at least one of the candidate data structures; and
automatically render the narrative story natural language text for display based at least in part on (1) the selected at least one candidate data structure and (2) at least one of (i) data within the structured data set and (ii) data within the computed derived features such that the rendered narrative story natural language text describes the structured data set in accordance with the at least one characterization represented by the selected at least one candidate data structure.

### Claim 2 (depends on 1)

The apparatus of claim 1 wherein the tested data comprises (1) data within the structured data set and (2) data within the computed derived features.

### Claim 3 (depends on 2)

The apparatus of claim 2 wherein each of a plurality of the candidate data structures is further associated with an importance value, and wherein the processor is further configured to filter the candidate data structures based at least in part on the importance values associated with the candidate data structures.

### Claim 4 (depends on 3)

The apparatus of claim 3 wherein the importance values comprise a plurality of fixed values associated with a plurality of the data structures.

### Claim 5 (depends on 3)

The apparatus of claim 3 wherein the processor is further configured to compute a plurality of the importance values associated with a plurality of the data structures based on at least one of (1) data within the structured data set and (2) data within the computed derived features.

### Claim 6 (depends on 1)

The apparatus of claim 1 wherein the data structures do not themselves comprise any specific text for the narrative story.

### Claim 7 (depends on 1)

The apparatus of claim 1 wherein the selected at least one candidate data structure comprises a plurality of selected candidate data structures; and
wherein the processor is further configured to automatically render the narrative story natural language text for display based at least in part on (1) the selected candidate data structures and (2) at least one of (i) data within the structured data set and (ii) data within the computed derived features such that the rendered narrative story natural language text describes the structured data set in accordance with the characterizations represented by the selected candidate data structures.

### Claim 8 (depends on 7)

The apparatus of claim 7 wherein the processor is further configured to:
prioritize the plurality of selected candidate data structures; and
automatically render the narrative story natural language text for display such that the generated text describes the structured data set in accordance with the prioritization of the selected candidate data structures.

### Claim 9 (depends on 8)

The apparatus of claim 8 wherein each of a plurality of the selected candidate data structures is further associated with an importance value, and wherein the processor is further configured to prioritize the plurality of selected candidate data structures based at least in part on their associated importance values.

### Claim 10 (depends on 7)

The apparatus of claim 7 wherein the memory is further configured to store a plurality of phrasal generation routines, wherein each of a plurality of the data structures is associated with a phrasal generation routine from among the plurality of phrasal generation routines; and
wherein the processor is further configured to render the narrative story natural language text for display based on an invocation of the phrasal generation routine associated with the selected candidate data structures.

### Claim 11 (depends on 10)

The apparatus of claim 10 wherein each of a plurality of the data structures comprise a plurality of points that support the characterization represented by that data structure; and
wherein the processor is further configured to (1) select and assemble a plurality of elements of the structured data set to create an element list data structure that connects the selected elements to the points of the selected candidate data structures and (2) render the narrative story natural language text for display based at least in part on an application of the selected elements from the element list data structure to the invoked phrasal generation routine to thereby output and assemble a plurality of phrases in a natural language that describe the structured data set based at least in part on the points that support the characterizations represented by the selected candidate data structures.

### Claim 12 (depends on 11)

The apparatus of claim 11 wherein each of a plurality of the data structures is associated with an importance value; and
wherein the processor is further configured to (1) determine an order for an expression of the characterizations represented by the selected candidate data structures within the narrative story based at least in part on the importance values associated with the selected candidate data structures, (2) perform the element selection for each of the selected candidate data structures to generate a plurality of the element list data structures, (3) generate an angle list data structure that represents the ordered data structures, (4) assemble the elements of the element list data structures based at least in part on the angle list data structure to generate an ordered element list data structure, and (5) render the narrative story natural language text for display based at least in part on the ordered element list data structure and an application of the elements from the ordered element list data structure to the invoked phrasal generation routine to thereby output and assemble a plurality of phrases in a natural language that describe the structured data set based on the points that support the characterizations represented by the selected candidate data structures.

### Claim 13 (depends on 12)

The apparatus of claim 12 wherein the processor is further configured to render the narrative story natural language text for display based at least in part on a recursive traversal of the ordered element list data structure and an application of the recursively traversed elements from the ordered element list data structure to the invoked phrasal generation routine to thereby output and assemble a plurality of phrases in a natural language that describe the structured data set based at least in part on the points that support the characterizations represented by the selected candidate data structures.

### Claim 14 (depends on 12)

The apparatus of claim 12 wherein the processor is further configured to (1) filter the selected candidate data structures based at least in part on the importance values associated with the selected candidate data structures to yield a set of filtered data structures and (2) perform the order determination with respect to the filtered data structures.

### Claim 15 (depends on 1)

The apparatus of claim 1 wherein the structured data set comprises a plurality of data elements, and wherein the processor is further configured to (1) identify one or more of the data elements that are to be included within the narrative story based at least in part on the selected at least one candidate data structure and (2) automatically render the narrative story natural language text for display using the selected at least one candidate data structure and the one or more identified data elements.

### Claim 16

A computer program product for automatically generating a narrative story about a structured data set, the narrative story comprising natural language text arranged in a narrative format, the computer program product comprising:
a plurality of computer executable instructions resident on a non-transitory computer-readable storage medium, the instructions, when executed by a computing device, configured to cause the computing device to:
access a plurality of data structures in a memory, each of a plurality of the data structures being representative of a characterization of data and having an associated applicability condition, the associated applicability condition for testing against data within or derived from the structured data set to support a determination as to whether the representative characterization for the applicability condition's associated data structure is an accurate characterization of the structured data set;
compute a plurality of derived features from the structured data set, wherein the structured data set comprises data that falls into a plurality of fields and/or categories and which relates to specific events, situations, entities, or aggregations thereof, and wherein the data of the structured data set includes numeric values;
test data against a plurality of the applicability conditions for a plurality of the accessed data structures, wherein the tested data comprises at least one of (1) data within the structured data set and (2) data within the computed derived features;
in response to the tests, (1) determine that a plurality of the data structures are candidate data structures that accurately characterize the structured data set and (2) filter the candidate data structures to select at least one of the candidate data structures; and
automatically render the narrative story natural language text for display based at least in part on (1) the selected at least one candidate data structure and (2) at least one of (i) data within the structured data set and (ii) data within the computed derived features such that the rendered narrative story natural language text describes the structured data set in accordance with the at least one characterization represented by the selected at least one candidate data structure.

### Claim 17

A method for automatically generating a narrative story about a structured data set, the narrative story comprising natural language text arranged in a narrative format, the method comprising:
a processor computing a plurality of derived features from the structured data set, wherein the structured data set comprises data that falls into a plurality of fields and/or categories and which relates to specific events, situations, entities, or aggregations thereof, and wherein the data of the structured data set includes numeric values;
a processor accessing a plurality of data structures in a memory, each of a plurality of the data structures being representative of a characterization of data and having an associated applicability condition, the associated applicability condition for testing against at least one of (1) data within the structured data set and (2) data within the computed derived features to support a determination as to whether the representative characterization for the applicability condition's associated data structure is an accurate characterization of the structured data set;
a processor testing data against a plurality of the applicability conditions for a plurality of the accessed data structures, wherein the tested data comprises at least one of (1) data within the structured data set and (2) data within the computed derived features;
in response to the testing, a processor, (1) determining that a plurality of the data structures are candidate data structures that accurately characterize the structured data set and (2) filtering the candidate data structures to select at least one of the candidate data structures; and
a processor automatically rendering the narrative story text for display based at least in part on (1) the selected at least one candidate data structure and (2) at least one of (i) data within the structured data set and (ii) data within the computed derived features such that the rendered narrative story natural language text describes the structured data set in accordance with the at least one characterization represented by the selected at least one candidate data structure.

### Claim 18 (depends on 17)

The method of claim 17 wherein the tested data comprises (1) data within the structured data set and (2) data within the computed derived features.

### Claim 19 (depends on 18)

The method of claim 18 wherein each of a plurality of the candidate data structures is further associated with an importance value, and wherein the filtering step further comprises a processor filtering the candidate data structures based at least in part on the importance values associated with the candidate data structures.

### Claim 20 (depends on 19)

The method of claim 19 further comprising:
a processor computing a plurality of the importance values associated with a plurality of the data structures based on at least one of (1) data within the structured data set and (2) data within the computed derived features.

### Claim 21 (depends on 17)

The method of claim 17 wherein the data structures do not themselves comprise any specific text for the narrative story.

### Claim 22 (depends on 17)

The method of claim 17 wherein the selected at least one candidate data structure comprises a plurality of selected candidate data structures, and wherein the rendering step further comprises:
a processor automatically rendering the narrative story natural language text for display based at least in part on (1) the selected candidate data structures and (2) at least one of (i) data within the structured data set and (ii) data within the computed derived features such that the rendered narrative story natural language text describes the structured data set in accordance with the characterizations represented by the selected candidate data structures.
